Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What algorithm does Nginx use to load balance? Can it balance based on connection load?

0
Posted

What algorithm does Nginx use to load balance? Can it balance based on connection load?

0

Currently, Nginx uses a simple round robin algorithm. It cannot balance based on connection load. (This may change in a future release.) There is a third-party module, Http Upstream Hash, that uses a form of hash load balancing. Note: Many users have requested that Nginx implement a feature in the load balancer to limit the number of requests per backend (usually to one). While support for this is planned, it’s worth mentioning that demand for this feature is rooted in misbehaviour on the part of the application being proxied to (Ruby on Rails seems to be one example). This is not an Nginx issue. In an ideal world, this particular problem fix request would be directed toward the backend application and its ability handle simultaneous requests.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.