unbit / uwsgi

uWSGI application server container
http://projects.unbit.it/uwsgi
Other
3.45k stars 688 forks source link

Mechanism to insert a hook pre forking or before a worker process is spawned #2585

Open ajinnair opened 10 months ago

ajinnair commented 10 months ago

Hi developers, I am validating uwsgi for few cases in my org , planning to use emperor mode and apps as vassals. Is there a hook ( I couldn't find in docs) which can be used to check memory before a worker process is spawned/forked by the master process of a vassal. I know there are hooks before a worker accepts a request but that's executed after its spawned.

Have any of you hit this scenario ? If yes are there other solutions which I should explore.

Thank you