Answer the question
In order to leave comments, you need to log in
Config apache + nginx for loaded project?
Good day! Friends, please help me to make configs for a loaded site.
Attendance is 100k+, the content is fully dynamic.
The site has been slowing down lately. We restart Apache and everything starts to fly, but not for long.
Answer the question
In order to leave comments, you need to log in
Right now I'll say a terrible banality, but in order to "fly" you need to abandon apache2 (in most cases). In small normal projects, you can usually easily switch to php-fpm.
Again, you need to look at the nginx / apache2 configs, the load at the time of the brakes (LA, mem, cpu, cache, etc), the state of the databases
You just can’t tell.
PS You have a little more than 1 user per second, this is a very small load.
1. This is not a loaded project.
2. Check the server and client caching settings (if you have it, of course!)
3. Check that invalid requests from clients are not allowed to pass to scripts (to relieve the load)
4. Check that all operations with the database are limited by the number of rows when sampling.
nginx+apache2+PHP-FPM
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question