Welcome! Log In Create A New Profile

Advanced

Re: Introducing backend healthchecking plugin

March 01, 2010 05:54AM
On Feb 26, Jack Lindamood wrote:
>I've written a plugin that can health check nginx backends, which
>everyone is free to use. This is similar to the healthchecking
>features that varnish and haproxy support. Here's a sample config[1]
>just to give you an idea, that uses the upstream_hash plugin. You can
>get the code here [2] and an example of how to patch upstream_hash here
>[3]. The plugin is actually an optional feature that other upstream
>plugins, like upstream fair or iphash for example, can plug into and
>use. To use it, their code needs to be modified to also check the
>health of the backend.
>
>This plugin is super beta, so please be careful. Feedback/patches
>welcome.

I have been wanting to write something similar from a long time, so
thanks for getting started.

Does the health check compete with the existing logic to mark an
upstream as up/down? Here is a scenario:

The real traffic goes to this upstream url "/service/login". My health
check url is configured as "/hc". Now /hc is always available by
/service/login is thowing up a lot of errors like timeouts, 500 etc.
etc for a given upstream server. What will the status be eventually
marked as?

_______________________________________________
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: 283
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