Skip to content

Instantly share code, notes, and snippets.

@dcramer
Created November 6, 2013 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcramer/7330744 to your computer and use it in GitHub Desktop.
Save dcramer/7330744 to your computer and use it in GitHub Desktop.
# supervisor
[sentry]
numprocs=10
command=uwsgi --addr=0.0.0.0:90%(process_num)02d
# when you restart it does them in batches, instead of one at a time
$ sudo supervisorctl restart sentry
- stops all 10 procs
- starts all 10 procs
# I want it to do
- stop one proc, start one proc
- rinse and repeat
@mnaberez
Copy link

mnaberez commented Nov 7, 2013

The supervisor-serialrestart plugin will do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment