Welcome! Log In Create A New Profile

Advanced

Re: questions about ngx_supervisord

Grzegorz Nosek
August 10, 2010 03:46AM
On pon, sie 09, 2010 at 05:06:39 -0400, jcroux@olopi.com wrote:
> Hello,
>
> I am writing this email because I have a few questions about the module
> ngx_supervisord and someone on the nginx forum suggested that I write
> directly to you.

Whee! Actually we just sponsored the module. The real author and
maintainer is Piotr Sikora, who's also active in the Nginx mailing
list.

> I am running a fasctcgi app (writtent in C++) with nginx 0.8.49 with
> supervisord 3.0a8.

Very roughly:

> supervisord.conf:
> [fcgi-program:dev_mdm_ajax_test]
> command=some_path/ajax.toff
> socket=tcp://127.0.0.1:9002

[fcgi-program:dev_mdm_ajax_test0]
command=some_path/ajax.toff
socket=tcp://127.0.0.1:9002

[fcgi-program:dev_mdm_ajax_test1]
command=some_path/ajax.toff
socket=tcp://127.0.0.1:9003

# etc.

> nginx.conf

upstream dev_mdm_ajax_test {
backend 127.0.0.1:9002;
backend 127.0.0.1:9003;
# etc.
supervisord 127.0.0.1:9000 user password;
}

> 38 server {
> 39 listen some_ip:80;
> 40 server_name nginxtest.toffsystems.com;
> 41 root /som_path/test;
> 42 location ~* \/$ {
> 43 index index.html index.htm;
> 44 }
> 45 location ~ \.toff$ {
> 46 include /usr/local/nginx/conf/fastcgi.conf;
> 47 fastcgi_pass 127.0.0.1:9002;

fastcgi_pass dev_mdm_ajax_test;

> 48 }
> 49 }
>
> This works pretty well expect that supervisord does not start new
> processes on demand and id all the processes are busy, there is a jam.
>
> To avoid that situation, I was advised to install ngx_supervisord.
>
> What would be a good configuration to achieve what I need?
>
> Also looking at the examples (http://github.com/FRiCKLE/ngx_supervisord),
> I don't seem to understand what the supervisord.conf file should look
> like.

The above should get you started.

Best regards,
Grzegorz Nosek

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

Re: questions about ngx_supervisord

Grzegorz Nosek August 10, 2010 03:46AM

Re: questions about ngx_supervisord

JCR August 10, 2010 10:03AM

Re: questions about ngx_supervisord

Grzegorz Nosek August 10, 2010 10:16AM

Re: questions about ngx_supervisord

Piotr Sikora August 11, 2010 12:26AM

Re: questions about ngx_supervisord

JCR August 10, 2010 12:36PM

Re: questions about ngx_supervisord

Piotr Sikora August 11, 2010 12:26AM

Re: questions about ngx_supervisord

JCR August 14, 2010 10:40AM

making supervisord web interface viewable on nginx

Jonathan Vanasco May 31, 2013 09:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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