Welcome! Log In Create A New Profile

Advanced

Re: Print current running connections in nginx

April 16, 2020 04:49AM
Thanks Mathew.

I thought about it and even prototyped it with openresty, but I am concerned about ngx.shared.DICT.get_keys locking the whole dictionary and blocking connections that are trying to add new incoming connections.

Is there some worker datastructure available that can be read and reported from? The worker obviously knows all the connections it is handling and the various states the connections are in. So it would be easy to iterate the internal data structure with an ngx.timer.every timer.

Thanks
Sachin
Subject Author Posted

Print current running connections in nginx

sachin.shetty@gmail.com April 16, 2020 03:31AM

Re: Print current running connections in nginx

Mathew Heard April 16, 2020 03:34AM

Re: Print current running connections in nginx

sachin.shetty@gmail.com April 16, 2020 04:49AM

Re: Print current running connections in nginx

Mathew Heard April 16, 2020 05:04AM

Re: Print current running connections in nginx

itpp2012 April 16, 2020 05:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
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