Are there any general optimizations for this sort of setup? I read something about nginx not using the most recent protocol in http, so are there things that I could tune apache for? Also, is there relationships between the keepalive attributes of each webserver or maxconnections and such?
I'd hate to optimize one the correct way and have the other stopping those optimizations from meaning anything.
Where do I start?
-
If you're proxying traffic to apache from nginx then the only place you need to worry about keepalives is in nginx. Nginx serves HTTP/1.1 to clients, but can only proxy HTTP/1.0, which doesn't support keepalive so there'll be no keepalive between apache and nginx.
Nginx will run several thousand connections without blinking, so start with setting a nice high keepalive timeout and reduce it if necessary.
The main issue you need to look at when configuring is that both apache and nginx can handle enough simultaneous connections - depending on your setup, you'll require several times the number of nginx connections to apache connections.
From theotherreceive
0 comments:
Post a Comment