Welcome! Log In Create A New Profile

Advanced

FRiCKLE Labs & MegiTeam pres. ngx_supervisord

Piotr Sikora
October 28, 2009 09:38PM
Hello,
I'm proud to present a module, already mentioned on the list a few days ago
by Grzegorz Nosek, that provides nginx with API to communicate with
supervisord.

Initial release adds the ability to START and STOP backends (or any
programs) on demand. If supervisord's [program:backend0] entry is configured
with "startsecs" parameter, then supervisord (and ngx_supervisord) will wait
that time before returning successful or failed status. This is of course
done in asynchronous way, so it doesn't halt nginx for a moment.

This simple feature, combined with load-aware load balancers (like Grzegorz
Nosek's nginx-upstream-fair) can offer very powerful features (starting
first backend when the first request arrives, starting/stopping backends on
demand, depending on the load, etc, etc). Patch for nginx-upstream-fair is
included in the release and it shows how easy all of this can be achieved.

Current version allows only one module to "register" its monitors with
ngx_supervisord, but as soon as there will be need for more (read: other
modules will start using ngx_supervisord), this will be changed without any
changes in the API.

If something is unclear, just ask.


This module was fully funded by megiteam.pl

For more information, API specification & download please visit:
http://labs.frickle.com/nginx_ngx_supervisord/


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

FRiCKLE Labs & MegiTeam pres. ngx_supervisord

Piotr Sikora October 28, 2009 09:38PM

Re: FRiCKLE Labs & MegiTeam pres. ngx_supervisord

Roger Hoover October 29, 2009 07:44PM

Re: FRiCKLE Labs & MegiTeam pres. ngx_supervisord

Piotr Sikora November 16, 2009 04:02PM

Re: FRiCKLE Labs & MegiTeam pres. ngx_supervisord

Piotr Sikora November 18, 2009 08:52PM

Re: FRiCKLE Labs & MegiTeam pres. ngx_supervisord

Piotr Sikora January 04, 2010 12:12AM

Re: FRiCKLE Labs & MegiTeam pres. ngx_supervisord

Piotr Sikora April 28, 2010 11:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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