Answer the question
In order to leave comments, you need to log in
Proxy nginx + 10 (nginx + php5-fpm). Really accelerate?
Hello, my darlings!
Asked a question of simplifying the bundle
Current config
Balancer (nginx) -> 10 servers with nginx + php5-fpm (socket).
Planned
Balancer (nginx) -> 10 servers with php5-fpm(port)
In general, the question! What is the best solution anyway? Or maybe you have more interesting solutions.
PS I understand that sockets work faster, but here we still run into the network.
Answer the question
In order to leave comments, you need to log in
It will be the same within the measurement error. Nginx on backends gives a minimal overhead, but this option is more reliable, because can, in principle, work without a balancer, in case of an accident, it will be faster to set up a new one or turn it on without it. In general, you want to change the awl to soap. If you really want to change something, try raising HAProxy on the balancer, in some cases it worked better for me than nginx, in some nginx works better.
Yes, actually on small configurations it doesn’t matter, well, you lose or gain a couple of three percent of the overhead, in the context of 1000 servers, this is 20-30 servers, which is significant, in your case it doesn’t matter
Sockets are faster than network, even on localhost, especially on large numbers.
nginx should be faster than php-fpm by definition, otherwise why is there php at all and you can put everything in static.
More efficiently than nginx, no one will give up statics.
With any optimization, you must first ask the question: "Where does it slow down, sobsno?".
Therefore, acceleration is more php processes + caching + profiling the code of the site itself + profiling work with the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question