Welcome! Log In Create A New Profile

Advanced

Re: Introducing backend healthchecking plugin

Piotr Sikora
March 02, 2010 05:24AM
> Do you mean use only ngx_supervisord? From what I can tell, it requires a
> separate daemon running on the machine that does the healthcheck, which
> then sends a call to nginx via supervisord to turn servers off or on. Is
> that correct?

No, it's not :P

Neither ngx_supervisord nor supervisord do any healt-checking.
ngx_supervisord communicates with supervisord (process manager) to
dynamically start or stop backend servers, depending on the load. Since
version 1.3 it also supports supervisord-less configuration which disables
all communication with supervisord daemon (so it basically takes backend
servers out of rotation without the need to reload nginx).

> Or did you mean call into ngx_supervisord when a healthcheck fails? I'm
> happy to integrate other APIs if you have some ideas.

Yeah, that's probably what Grzegorz meant. You would just need to call
ngx_supervisord_execute(uscf, NGX_SUPERVISORD_CMD_STOP, backend_number,
NULL) and then all ngx_supervisord-aware load balancers (upstream_fair,
round_robin & ip_hash) would automagically stop using failed backend until
you would execute NGX_SUPERVISORD_CMD_START.

Full API spec is available at:
http://github.com/FRiCKLE/ngx_supervisord/blob/master/patches/ngx_http_upstream_round_robin.patch

At the moment one would need to specify "supervisord none;" in order to
enable supervisord-less configuration, because there is no such call in API,
but I could add this in next release if you would like to use it.

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: 312
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