Forum: NGINX Access to live limit_conn values?

2974d09ac2541e892966b762aad84943?d=identicon&s=25 bryndole (Guest)
on 2013-09-19 02:59
(Received via mailing list)
I'm looking for a way get the value of the current number of connections
a given limit_conn zone.There is no variable access that I can find.

I'm considering hacking this into the stub_status module, so that all of
active connection zones are displayed with the current number of active

Is this value accessible via the lua or perl interface?

Having a way to just add this value to the log line might be sufficient.


Posted at Nginx Forum:,242973,242973#msg-242973
2974d09ac2541e892966b762aad84943?d=identicon&s=25 bryndole (Guest)
on 2013-09-27 01:59
(Received via mailing list)
Our own investigation indicates that, no, there is not way to directly
access the values in the limit_conn zones from "user space."

We created a new status page that reports all the existing zones and the
current connection counts for each, as well as what the current limits
It does this by walking the config data structure and building a list of
zones and then creating a simple report page.


Posted at Nginx Forum:,242973,243178#msg-243178
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.