|
|
|
|
|
by user5994461
3353 days ago
|
|
Apache default is prefork, which was appropriate to run php app the way they were done more than a decade ago. It is utterly inappropriate nowadays. For load balancing, events trumps every other mode, that's just the way it is. HTTP and TCP balancing are inherently mono thread operations. There is no need for threading at all, multiple threads are actually decreasing performances). In HTTPS and TLS mode, the encryption is the bottle neck. So you use one process per core (that process needs events). HaProxy lets me have one process pinned down to each core of the system while network card IRQ are on a dedicated core. Apache can't do half of that. We could get into how nginx and HaProxy parser are insanely optimized. Whereas apache is not and it cannot be because of the modules. Of course, not everyone has to push 10g or 30k requests/s with their load balancers. |
|
The rest of your "analysis" suffers from the same misinformation as this. I especially like "Whereas apache is not and it cannot be because of the modules.". I have no idea what in the world you mean by that. Why "because of the modules"?