Best sample code:
https://github.com/vozlt/nginx-module-vts
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,287673,287680#msg-287680
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
This is a snippet from something I was experimenting with. I can't recall
it actually worked, but it might help for a start. Good Luck.
ngx_cycle_t *cycle
for (i = 0; i < cycle->connection_n; i++) {
c = &conns[i];
if (c->fd == (ngx_socket_t) -1 || c->idle || c->listening) continue;
hlc = (
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 repo
Sachin,
AFAIK Not easily. Each worker only knows about their own connections.
You would need to build a module using a shared memory zone to track
connections.
Regards,
Mathew
On 16/04/2020, sachin.she...@gmail.com wrote:
> Hi,
>
> Status module prints the count of active connections.
>
> Is th
Sachin,
AFAIK Not easily. Each worker only knows about their own connections.
You would need to build a module using a shared memory zone to track
connections.
Regards,
Mathew
On 16/04/2020, sachin.she...@gmail.com wrote:
> Hi,
>
> Status module prints the count of active connections.
>
> Is th
Hi,
Status module prints the count of active connections.
Is there a way to fetch more details about currently running connections in
nginx like request uri, started time similar to Apache's extended status.
Thanks
Sachin
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,287673,28767