Hi,
–NG|NX Stats–
[root@server1 ~]# curl -k https://localhost/nginx_status
Active connections: 6
server accepts handled requests
268023 268023 127281
Reading: 0 Writing: 2 Waiting: 4
Active connections – Number of all open connections. This doesn’t mean number of users. A single user, for a single pageview can open many concurrent connections to your server.
Server accepts handled requests – This shows three values.
- First is total accepted connections.
- Second is total handled connections. Usually first 2 values are same.
- Third value is number of and handles requests. This is usually greater than second value.
Dividing third-value by second-one will give you number of requests per connection handled by Nginx.
Reading – nginx reads request header
Writing – nginx reads request body, processes request, or writes response to a client
Waiting – keep-alive connections, actually it is active – (reading + writing).This value depends on keepalive-timeout. Do not confuse non-zero waiting value for poor performance. It can be ignored. Although, you can force zero waiting by setting keepalive_timeout 0;
=> Dividing third-value by second-one will give you number of requests per connection handled by Nginx.
127281/ 268023 = 0.4748883491342161
I’m not sure about the values per below Grafana Graph.
–Grafana–
Regards,