Nginx proxy overhead with / out keep alive requests
paphillon
nginx-forum at nginx.us
Wed Jun 13 17:52:32 UTC 2012
Hi Maxim,
Thanks for the insight! I had a hunch on the keepalive setting from
nginx to tomcat, but did not really find anything in the document about
that. I will give it a try and let you know the results. I am not sure
if I will be able to use this keepalive in production as it requires
upstream config and differs from the way we have architect Nginx
configuration.
I am using nginx as a dynamic proxy which routes the clients calls
(primarily web service calls) to different servers depending on the key
the client passes via cookie or http headers. The url's are in a map in
the below form
map $http_void $header_based_url{
default "no_http_header";
key1 server_instance_1_url;
key2 server_instance_2_url;
......
}
location /xxx {
proxy_pass $header_based_url;
}
And to make it more simple to add / maintain the server url's, the URL's
are stored in a flat file
I am not sure how I can use the keepalive over here other than the
upstream or how do I make this upstream config compatible.
Regards
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,227472,227503#msg-227503
More information about the nginx
mailing list