Supervisor itself has no way to know what kind of traffic your FCGI processes are handling (it just creates a socket and forks the processes but does not have anything to do with incoming requests). The only way to get that is to plug into web server and use the data there to tell Supervisor when to spawn or reap processes. This what the nginx module is for that you're trying to use.
On Mon, Jun 21, 2010 at 9:49 AM, <jcr...@olopi.com> wrote: > > Sorry, I don't have any insight into the compilation issue you're having. > > I > > hope someone responds on the nginx list. > > So far I have no answer on that issue. Is there another way to start more > processes with supervisord? > > Thanks! > > > > > > Roger > > > > On Sat, Jun 19, 2010 at 7:24 AM, <jcr...@olopi.com> wrote: > > > >> > This nginx module is intended to manage FCGI programs on demand. > >> > > >> > http://labs.frickle.com/nginx_ngx_supervisord/ > >> Hello Roger, > >> > >> Thank you for the idea but I am struggling with the installation of this > >> module. I opened a thread on that topic at: > >> http://forum.nginx.org/read.php?2,100258 > >> > >> JCR > >> > >> > >> > > >> > On Fri, Jun 18, 2010 at 10:56 AM, <jcr...@olopi.com> wrote: > >> > > >> >> Hello, > >> >> > >> >> I have the following configuration > >> >> 131 [fcgi-program:chat] > >> >> 132 command=/websites/nginx/chat.toff > >> >> 133 socket=tcp://127.0.0.1:9000 > >> >> 134 process_name=%(program_name)s_%(process_num)02d > >> >> 135 numprocs=2 > >> >> 136 priority=999 > >> >> 137 autostart=true > >> >> 138 autorestart=unexpected > >> >> 139 startsecs=1 > >> >> 140 startretries=3 > >> >> 141 exitcodes=0,2 > >> >> 142 stopsignal=QUIT > >> >> 143 stopwaitsecs=10 > >> >> > >> >> numprocs is 2 and chat.toff takes 20 seconds to run. If I quickly > >> >> refresh > >> >> the webpage calling chat.toff three times, the third request is not > >> >> processed until the first process has ended. > >> >> > >> >> Is there a way to have supervisord start processes on demand? > >> >> > >> >> Thank you > >> >> > >> >> > >> >> _______________________________________________ > >> >> Supervisor-users mailing list > >> >> Supervisor-users@lists.supervisord.org > >> >> http://lists.supervisord.org/mailman/listinfo/supervisor-users > >> >> > >> > > >> > >> > >> > > > > >
_______________________________________________ Supervisor-users mailing list Supervisor-users@lists.supervisord.org http://lists.supervisord.org/mailman/listinfo/supervisor-users