<div>Hi, Bartenev,<br><div><br><div>Our backend server is an old product existing for more than 20 years. When a client login in to the backend server, a session is created. The session will be terminated when the client log out. To prevent the server from out of memory issue, we can configure the max allowed session number for one backend server instance. So, in the backend server instance, when the max session number is reached, no more clients can login, however, it can still serve for the client which already logined in.<br><div><br><div>So, this is different from the health check. My understanding is that full load is not equal to unhealthy. As far as I know, F5 hardware seems support such kind of requirement.<br><div><br><div>Thanks<br>Liu Peng<br></div></div></div></div></div></div></div><div id="origbody"><div style="background: #f2f2f2;">----- 原始邮件 -----<br>发件人:"Valentin V. Bartenev" <vbart@nginx.com><br>收件人:nginx@nginx.org<br>主题:Re: Can nginx has the capability to dynamically limit the connections when the upstream server has full load<br>日期:2016年08月19日 22点06分<br></div><br><br>On Friday 19 August 2016 09:25:46 tjlp@sina.com wrote:<br>>  Hi,<br>> <br>> I have a scenario: my backend servers provide URL to query whether this sever can accept new connections (the http response body is "true" or "false"). This server also has configuration for the max allowed session. Now I want to use Nginx as load balancer. Does Nginx provide such kind of load balancing configuration: when a backend server can't accept new connection, the new session won't be created for this full server?<br>> <br>Just curious, why is it done this way?<br>If your server doesn't want to accept new connections,<br>then why it doesn't just reject them with some error code?<br>The commercial version of nginx is able to query such kind of URL.<br>See for details: http://nginx.org/r/health_check<br>  wbr, Valentin V. Bartenev<br>_______________________________________________<br>nginx mailing list<br>nginx@nginx.org<br>http://mailman.nginx.org/mailman/listinfo/nginx<br></div>