Dynamic Upstream Provider List
rovar
nginx-forum at nginx.us
Mon May 31 19:34:29 MSD 2010
I am working on a load balancing system where the upstream providers need to change at runtime. The available peer group will be routed either by a hash, or by round robin, but the size of the peer group might change between any request.
The easy way seems to be to bypass the upstream http functionality altogether and simply return the appropriate peer from the callback in r->upstream->peer.get
Will this work?
Does something else already do this?
If not, what is a more idiomatic way to write this module?
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,92715,92715#msg-92715
More information about the nginx
mailing list