Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace random with least_conn #690

Closed
wants to merge 3 commits into from
Closed

Conversation

magnus-longva-bouvet
Copy link
Contributor

No description provided.

@magnus-longva-bouvet
Copy link
Contributor Author

The Random load balancing method should be used for distributed environments where multiple load balancers are passing requests to the same set of backends. For environments where the load balancer has a full view of all requests, use other load balancing methods, such as round robin, least connections and least time.

https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/#choosing-a-load-balancing-method

Considering that we do have multiple nginx backends, it looks like the random load balancing method most closely resembles the intuitive interpretation of "leastconnectedlb".

@satr satr deleted the least_conn_nginx branch September 28, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants