Welcome! Log In Create A New Profile

Advanced

Re: Setting of the connection limit of an individual server.

August 02, 2011 09:14PM
Hi.
This is Ichiro.

I installed EY Balancer Module.
So I looked like to be finished this problem.
This problem seemed to be over.

However, a problem occurred one more...

The queue beyond max_connections is kept waiting forever.
I tuned up ”max_connections_module.c", but behavior does not change.

Can you throw away connection beyond the "max_connections" to sorry_server?

ex)---------------------------------------------
*nginx.conf
upstream 192.168.1.1 {
server 192.168.11.1:80; <- 1 conn/sec
server 192.168.11.2:80; <- 1 conn/sec
max_connections 1
}

*max_connections_module.c
if (conf == NULL) return NGX_CONF_ERROR;
max_connections_rr_index = 0;
conf->max_connections = 1;
conf->max_queue_length = 10; /* default max queue length 10000 */
conf->queue_timeout = 10; /* default queue timeout 10 seconds */
return conf;
--------------------------------------------------

Regards.
Ichiro
Subject Author Posted

Setting of the connection limit of an individual server.

Ichiro July 28, 2011 08:12AM

Re: Setting of the connection limit of an individual server.

Ensiferous July 28, 2011 09:37AM

Re: Setting of the connection limit of an individual server.

Ichiro July 28, 2011 08:53PM

Re: Setting of the connection limit of an individual server.

Ichiro August 02, 2011 09:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready