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
Post a Comment