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.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel