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).
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).