W dniu 29.11.2010 18:36, Roger Hoover pisze:
> Hi Grzegorz,
>
> Good point about detecting copy/paste errors.  That should be improved.
>
> What's the use case for multiple fcgi programs sharing the same socket
> (as opposed to numprocs > 1)?

One reason to use it is a buglet (or rather missing functionality) in 
supervisord: changing numprocs in a fcgi-program group requires 
restarting all the already running processes, so increasing the numprocs 
of a running app is a disruptive operation, while adding a new 
fcgi-program goes smoothly. Arguably, that should be fixed instead (or 
at least as well) but sharing sockets may be used e.g. for live upgrades 
(similar to nginx):
  - start new app on the same socket
  - kill -STOP old one (or shut it down altogether)
  - verify that new app works
  - shut down either one (depending on which one you want to keep)

I had a very brief look at the relevant code and it looked like reusing 
sockets would be much easier and cleaner than hacking the restart code. 
Correct me if I'm wrong but AIUI supervisord distinguishes only between 
old_fcgi_program == new_fcgi_program (do nothing) and old != new (shut 
down everything, apply new config, start up again).

Best regards,
  Grzegorz Nosek
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to