chop-dbhi / omop_harvest

OMOP CDMV4 data model with OSIM2 data in Harvest
https://eig.research.chop.edu/omop/
Other
5 stars 3 forks source link

Add die-on-term to uwsgi files #3

Closed gracebrownecodes closed 10 years ago

gracebrownecodes commented 10 years ago

The syntax in the [uwsgi] ini file should just be:

[uwsgi] ... die-on-term ...

(You can also use --die-on-term in the uwsgi command.)

Supervisor by default sends processes a TERM signal, which for uWSGI processes causes abrupt termination without cleanup. With master-worker scenarios, this leaves rogue worker processes behind (that consume max cpu as they get caught in a recursive error reporting situation).