rtyler / Spawning

Spawning is a wsgi server which supports multiple processes, multiple threads, green threads, non-blocking HTTP io, and automatic graceful upgrading of code
http://pypi.python.org/pypi/Spawning
MIT License
120 stars 18 forks source link

Document the usage of SIGUSR1 #1

Open lericson opened 14 years ago

lericson commented 14 years ago

It'd be nice to have some sort of documentation on what SIGUSR1 is used for.

Quote for future reference:

 lericson: they send SIGUSR1 when they stop accepting new connections
 there's a point where the child is not accepting new connections, finishing old ones
 it sends SIGUSR1 so you don't have diminished capacity and such
 to help avoid the case where you're using --max-age and child procs start dying around the same time