nginx variable to know the number of active connections

Maxim Dounin mdounin at mdounin.ru
Fri Dec 20 15:48:38 UTC 2013


Hello!

On Fri, Dec 20, 2013 at 09:54:21AM -0500, gglamenace wrote:

> Hello,
> 
> Is there a way to get the number of active connections in order to activate
> or a not a cache mechanism when nginx is in a high trafic period?

The following variable are available in the 
ngx_http_stub_status_module:

$connections_active, 
$connections_reading
$connections_writing
$connections_waiting

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list