How to implement a new load-balancing algorithm in Nginx

Maxim Dounin mdounin at mdounin.ru
Fri Jun 25 16:08:55 UTC 2021


Hello!

On Thu, Jun 24, 2021 at 02:59:33PM -0400, malzad wrote:

> 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?  

http://nginx.org/en/docs/dev/development_guide.html#http_load_balancing

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx mailing list