Done some additional testing and it looks good. Regular round-robin
upstream continues to work
as before, unaffected by the change. For implicit upstream via
proxy_pass - we get the random
distribution among available IPs.
Anything else you would like added/changed in the new patch?
Not sure it can be made much smaller... except maybe the expression to
choose a random
index could be simplified to use random() or ngx_random() function
instead of rand().
Anton.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel