Welcome! Log In Create A New Profile

Advanced

Re: Load balancer question

mex
November 12, 2014 03:00AM
Hi,

> I would like nginx to manage the requests among the three instances above, depending on the load. Is it correctly defined?

what you have defined is a round-robin-based loadbalancing,
what you probably would like to do is a loadbalancing based on the connections processed:

http://nginx.org/en/docs/http/ngx_http_upstream_module.html#least_conn

"Specifies that a group should use a load balancing method where a request is passed to the server with the least number of active connections, taking into account weights of servers. If there are several such servers, they are tried in turn using a weighted round-robin balancing method."

please read http://nginx.org/en/docs/http/ngx_http_upstream_module.html
for more available loadbalancing-methods

> How can I test that my request are properly managed by nginx?

create a dummypage on each server and / or check the logs on your appserver.


cheers,


mex
Subject Author Posted

Load balancer question

matinte November 11, 2014 11:44AM

Re: Load balancer question

mex November 12, 2014 03:00AM

Re: Load balancer question

Francis Daly November 12, 2014 05:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 317
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready