<br>
<br><br><div class="gmail_quote">On Wed, Jul 14, 2010 at 7:01 PM, Srebrenko Šehić <span dir="ltr"><<a href="mailto:ssehic@gmail.com">ssehic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Wed, Jul 14, 2010 at 4:15 AM, Weibin Yao <<a href="mailto:nbubingo@gmail.com">nbubingo@gmail.com</a>> wrote:<br>
<br>
Hi,<br>
<div class="im"><br>
> See this module as an example:<br>
> <a href="http://github.com/cep21/healthcheck_nginx_upstreams" target="_blank">http://github.com/cep21/healthcheck_nginx_upstreams</a><br>
<br>
</div>Yeah. I had a look at that, but that module does an active health<br>
check. All I want is to query the current status as seen by nginx'<br>
workers themselves. I do NOT want to send any additional requests to<br>
the upstream.<br>
Any pointers?<br>
<div><div class="h5"><br></div></div></blockquote><div>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. <br>
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.<br></div></div><br>