python - How to add a new signal handler to gunicorn? -


i need way set number of workers gunicorn master process.

so i'm thinking of overriding arbiter , adding new signal handler, read new number of workers file.

which signal proper 1 use purpose?

from http://gunicorn-docs.readthedocs.org/en/latest/signals.html

the signal hup can used reload gunicorn configuration on fly

sending hup signal reload configuration, start new worker processes new configuration , gracefully shutdown older workers.

you need set workers variable in configuration file appropriate value before signal master process.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -