zulip/puppet
Tim Abbott b2d01e2da0 [manual] restart-server: Minimize downtime for message sender worker.
The manual step here is that we need to do the `puppet apply` before
pushing this commit, or `restart-server` will crash.

Previously we shut down everything in one group, which performed
poorly with supervisor's bad performance on restarting many daemons at
once.  Now we shut down the unimportant stuff, then the important
stuff, bring back the important stuff, and then bring back the
unimportant stuff.

This new model has a little over 5s of downtime for the core
user-facing daemons -- which is still far more than would be ideal,
but a lot less than the 13s or so that we had before.

Here's some logs with the current setup for the tornado/django downtime:
2013-12-19 20:16:51,995 restart-server: Stopping daemons
2013-12-19 20:16:53,461 restart-server: Starting daemons
2013-12-19 20:16:57,146 restart-server: Starting workers

Compare with the behavior on master today:
2013-12-19 20:21:45,281 restart-server: Stopping daemons
2013-12-19 20:21:49,225 restart-server: Starting daemons
2013-12-19 20:21:58,463 restart-server: Done!

(imported from commit b2c1ba77f3dc989551d0939779208465a8410435)
2013-12-19 17:21:23 -05:00
..
puppet-apt puppet-apt: Fix missing owner/group for created files. 2013-11-13 21:47:14 -05:00
puppet-common [manual] Move puppet modules to the top level 2013-10-30 15:42:26 -04:00
zulip [manual] restart-server: Minimize downtime for message sender worker. 2013-12-19 17:21:23 -05:00
zulip_internal [manual] Release OS X desktop app 0.4.2 2013-12-18 16:14:51 -05:00
apt [manual] Move puppet modules to the top level 2013-10-30 15:42:26 -04:00
common [manual] Move puppet modules to the top level 2013-10-30 15:42:26 -04:00