A
A
Andrey Berezhnoy2015-07-07 00:36:40
PHP
Andrey Berezhnoy, 2015-07-07 00:36:40

How to optimize server load with a WordPress blog?

I have a WordPress blog hosted on the first DigitalOcean plan (1xCPU, 512MB RAM).
Sometimes, after publishing an entry and sharing it in social networks (more than 200k followers), there is a sharp surge in visits.
The Nginx + PHP-FPM bundle is used. How can you correctly tune the server so that it does not choke on a sudden load?
Stably starts working when the number of users drops to 600-700. At 1000+, it starts to lag and give the page for a long time.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-07-07
@AndreyBerezhnoy

caching, put some w3total cache or something like that (I think it will be bold to put a front-end on such a tariff). Let WP generate HTML and save it, and then let nginx give the static to the fans. Then requests will not reach PHP at all.

L
Lici, 2015-07-07
@Lici

Cloud Flare!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question