Welcome! Log In Create A New Profile

Advanced

Re: Introducing backend healthchecking plugin

Piotr Sikora
March 02, 2010 05:18PM
> The second style is needed in cases where we plan to do some maintanence
> activity on an upstream server and want to proactively not send traffic
> to it. Typical example is when you want to push new software, check with
> a couple of requests and see if your app is behaving well and if all
> looks fine, direct traffic to it.

Actually, you don't need health-checks for that, ngx_supervisord provides
that functionality out-of-the-box. If you plan on taking servers down for
maintenance, you can use supervisord_stop and supervisord_start handlers.
Please take a look at example configuration #2, because it does exactly
that:
http://labs.frickle.com/nginx_ngx_supervisord/README

> In the absence of priority between the two styles of checking, we could
> end up with a flapping upstream status. The logical priority seems to be
> that #2 wins over #1. So, if the health check url says an upstream
> server is down, no traffic should be sent it way and the health status
> evaluation based on style #1 should be ignored. If the health check
> deems and upstream to be up, then the outcome of #1 is the final status.

In-line checks are considered failures. When you take down server with
ngx_supervisord, it's marked down (same way as if you would add "down" in
your configuration and reload nginx), so it takes priority.

> I will not have time before this weekend to get started on merging
> these; so if someone gets down to doing it earlier, thanks :-)

I'll try to find some time today, can't promise anything though.

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >



_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Introducing backend healthchecking plugin

cep221 February 26, 2010 08:30PM

Re: Introducing backend healthchecking plugin

anomalizer March 01, 2010 05:54AM

Re: Introducing backend healthchecking plugin

cep221 March 02, 2010 02:57AM

Re: Introducing backend healthchecking plugin

Grzegorz Nosek March 02, 2010 03:08AM

Re: Introducing backend healthchecking plugin

cep221 March 02, 2010 03:34AM

Re: Introducing backend healthchecking plugin

Grzegorz Nosek March 02, 2010 04:14AM

Re: Introducing backend healthchecking plugin

Piotr Sikora March 02, 2010 05:26AM

Re: Introducing backend healthchecking plugin

Piotr Sikora March 02, 2010 05:24AM

Re: Introducing backend healthchecking plugin

anomalizer March 02, 2010 01:24PM

Re: Introducing backend healthchecking plugin

mike March 02, 2010 01:32PM

Re: Introducing backend healthchecking plugin

Piotr Sikora March 02, 2010 05:18PM

Re: Introducing backend healthchecking plugin

anomalizer March 02, 2010 09:52PM

Re: Introducing backend healthchecking plugin

Piotr Sikora March 02, 2010 11:16PM

Re: Introducing backend healthchecking plugin

Piotr Sikora March 08, 2010 04:20PM

Re: Introducing backend healthchecking plugin

cep221 March 09, 2010 12:42PM

Re: Introducing backend healthchecking plugin

Piotr Sikora March 09, 2010 01:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 232
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