How to implement a new load-balancing algorithm in Nginx

malzad nginx-forum at forum.nginx.org
Thu Jun 24 18:59:33 UTC 2021


Hello,

is it possible to implement a new load-balancing algorithm in Nginx just
like “least_conn”, “ip_hash”? The algorithm will hash (not similar to
generic hash provided by Nginx) some part of the URL and do some other
calculations, and based on the calculation, the request will be passed to
the appropriate backend server. If this is possible where should I begin?  

Thanks in advance.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,291913,291913#msg-291913



More information about the nginx mailing list