3 messages in ru.sysoev.nginxRE: pls. explain ngx_http_stub_status...
FromSent OnAttachments
Martin MinkaApr 30, 2007 4:23 am 
Igor SysoevApr 30, 2007 4:41 am 
Martin MinkaApr 30, 2007 6:49 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: pls. explain ngx_http_stub_status_moduleActions...
From:Martin Minka (mart@public.gmane.org)
Date:Apr 30, 2007 6:49:02 am
List:ru.sysoev.nginx

1. Hope it is ok that I added your explanation to english wiki.

2. The RRD script is gathering data only each minute. It would be great to get information accumulated between now and latest request with RESET parameter (like http://<server>/nginx_status?RESET. The values should be max(), min(), avg(), count(of status changes). I saw on the http://wiki.codemongers.com/NginxFeatureRequests page request about extended server-status ... I support this request as middle priority.

3. I would vote for "Smart load balancing" with highest mark. It would be great if nginx could automaticaly adjust what server to use. Unfortunately I am running very differend hardware on my backend servers and it is difficult to set the height between them. I am not sure how difficult it could be to implement some heartbeat metrics or compare response time of the same URL (maybe set as default) from different servers.

-----Original Message----- From: owner-nginx-wivfeu+yiMA@public.gmane.org
[mailto:owner-nginx-wivfeu+yiMA@public.gmane.org] On Behalf Of Igor Sysoev Sent: Monday, April 30, 2007 1:42 PM To: nginx-nofU2znGi42HXe+LvDL@public.gmane.org Subject: Re: pls. explain ngx_http_stub_status_module

On Mon, Apr 30, 2007 at 01:23:59PM +0200, Martin Minka wrote:

coul you please explain the numbers in stub_status ? for example: Active connections: 291

server accepts handled requests

16630948 16630948 31070465

Reading: 6 Writing: 179 Waiting: 106 sincerely, Martin Minka

The stub status module reports status similar to mathopd's one: nginx was used as drop-in replacement on one of our sites/

active connections - number of all open connections including connections to backends.

server accepts handled requests 16630948 16630948 31070465

nginx accepted 16630948 connections, handled 16630948 connections (no one was closed just it was accepted), and handles 31070465 requests (1.8 requests per connection)

reading - nginx reads request header; writing - nginx reads request body, processes request, or writes response to a client waiting - keep-alive connections, actullay = active - (reading + writing)