10 messages in ru.sysoev.nginxRe: Does any module support the heath...
FromSent OnAttachments
ChieuMay 31, 2009 3:55 am 
mingjiang huangJun 8, 2009 2:25 am 
Michael ShadleJun 8, 2009 1:11 pm 
Avleen VigJun 9, 2009 4:01 am 
Michael ShadleJun 9, 2009 10:13 am 
merlin coreyJun 10, 2009 2:20 pm 
Michael ShadleJun 10, 2009 2:27 pm 
merlin coreyJun 10, 2009 2:44 pm 
Michael ShadleJun 10, 2009 2:58 pm 
ChieuJun 10, 2009 8:40 pm 
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: Does any module support the heathy check of the backend upstreams?Actions...
From:merlin corey (merl@dc949.org)
Date:Jun 10, 2009 2:20:58 pm
List:ru.sysoev.nginx

If nginx exposed an API of sorts to dynamically add/remove servers from the upstream, this could be done via an external process

While I see nothing wrong with this in general...

without having to manually create some upstreams.conf file and HUP the server each time.

What is so wrong with this? Also, just for clarity (though I think you meant it too) the external process can manage the upstreams.conf and HUP nginx automatically! You might even be able to get something like this going pretty quick with some small modifications to monit or something similar!

-- Merlin

On Tue, Jun 9, 2009 at 4:01 AM, Avleen Vig<avl@gmail.com> wrote:

This is something I would like very much too. But I'm not sure if doing it inside nginx is the best place. Maybe it is. I wouldn't want it to impact the performance of nginx though.

Eg, I currently have around 40 backend servers. If I want to check their health every 5 seconds, that's 8 checks a second (not much). But if I had 200 backend servers, that becomes a lot more checking nginx has to do *every second*

On Jun 8, 2009, at 21:12, Michael Shadle <mike@gmail.com> wrote:

I don't think that removes it and readds it. That sounds like he wants healthchecking (I do too) and currently it sounds like the answer is "do it outside of nginx, and then add the servers to the nginx config / include file as they come up and down and then restart/reload nginx)

On Mon, Jun 8, 2009 at 2:25 AM, mingjiang huang<lire@gmail.com> wrote:

On Sun, May 31, 2009 at 6:56 PM, Chieu <lfch@gmail.com> wrote:

hi, I want to implement a module that can check the heathy of the backend web servers circlely. If the upstream died, the module can remove the server from the upstream list and if the upstream get up, the module can add  it to the list. Is there a good way to implement it?

I think it's already be implemented in nginx

See http://wiki.nginx.org/NginxHttpUpstreamModule

The server directive has tow args: max_fails fail_timeout