Welcome! Log In Create A New Profile

Advanced

Re: Querying backend/upstream server status

July 14, 2010 10:50AM
Best regards.


On Wed, Jul 14, 2010 at 10:38 PM, Hungpo DU <alecdu@gmail.com> wrote:

>
>
>
> On Wed, Jul 14, 2010 at 7:01 PM, Srebrenko Šehić <ssehic@gmail.com> wrote:
>
>> On Wed, Jul 14, 2010 at 4:15 AM, Weibin Yao <nbubingo@gmail.com> wrote:
>>
>> Hi,
>>
>> > See this module as an example:
>> > http://github.com/cep21/healthcheck_nginx_upstreams
>>
>> Yeah. I had a look at that, but that module does an active health
>> check. All I want is to query the current status as seen by nginx'
>> workers themselves. I do NOT want to send any additional requests to
>> the upstream.
>> Any pointers?
>>
>> I don't think it's possible under current nginx architecture. Worker
> processes are quite independent, and nginx don't have mechanism like
> Apache's scoreborad, where every worker writes its status on. At least, you
> can't get the global information about what every process are doing.
> But, you may get upstream status about the worker_process who is handling
> your "/monitor" request by checking every requests the worker_process is
> handling? Just a thought.
>
> Yes, some idea hits me. Maybe, what ngx_http_stub_status_module does is
what you want. It does have gobal information about all the workers. Every
worker writes it's connections and requests information into a piece of
shared memory. But, it may requires a lot of work to show you what you want..
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Querying backend/upstream server status

Srebrenko Šehić 5064 July 13, 2010 06:42PM

Re: Querying backend/upstream server status

Weibin Yao 1524 July 13, 2010 10:16PM

Re: Querying backend/upstream server status

Srebrenko Šehić 1554 July 14, 2010 07:02AM

Re: Querying backend/upstream server status

duhoobo 1354 July 14, 2010 10:50AM

Re: Querying backend/upstream server status

duhoobo 1749 July 14, 2010 11:08AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready