Forum: NGINX upstream content checks

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2974d09ac2541e892966b762aad84943?d=identicon&s=25 Smatchimo (Guest)
on 2009-04-24 17:35
(Received via mailing list)
Does anyone know of any addons to nginx that would let it do content
checks to determine if an upstream server is alive or not, i.e. check a
certain page for a given string?

We are hoping to replace a lot of old ldirectord load balancers but this
is a feature we really need to have. All too often a web server (cough
cough IIS) will be responding to connections but giving errors instead
of showing valid content (cough cough ASP.NET), but by doing a content
check the load balancer will take the broken server out of the farm.

Thanks!

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,1422,1422#msg-1422
F5a6ed477b109fe6acc11a5a8f87e7e8?d=identicon&s=25 Michael Shadle (Guest)
on 2009-04-24 17:45
(Received via mailing list)
On Fri, Apr 24, 2009 at 8:26 AM, Smatchimo <nginx-forum@nginx.us> wrote:
> Does anyone know of any addons to nginx that would let it do content checks to determine 
if an upstream server is alive or not, i.e. check a certain page for a given string?
>
> We are hoping to replace a lot of old ldirectord load balancers but this is a feature we 
really need to have. All too often a web server (cough cough IIS) will be responding to 
connections but giving errors instead of showing valid content (cough cough ASP.NET), but 
by doing a content check the load balancer will take the broken server out of the farm.
>
> Thanks!

I've asked for this for a bit... :)

Right now the only answer is to use an external monitoring program
such as ldirectord or a home-made thing to check, have your upstreams
stored in an include file, and add/remove them as needed and send
nginx an appropriate HUP signal to reload it when things change.
This topic is locked and can not be replied to.