Count number of Gunicorn workers
$ pgrep gunicorn.*work | wc -l
5
Add another worker by signaling the Gunicorn master
$ sudo pkill -TTIN gunicorn.*mast
Verify another worker has appeared
$ pgrep gunicorn.*work | wc -l
6
Decrease the number of workers, verify its effect
$ sudo pkill -TTOU gunicorn.*mast
$ pgrep gunicorn.*work | wc -l
5
Thursday, July 9, 2015
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment