Go to file
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
analytics Show message history in reverse chronological order. 2013-12-19 14:03:55 -05:00
api Add support for event queues with an included narrow. 2013-12-12 17:36:39 -05:00
assets Allow enterprise deployments to disable the use of Gravatar. 2013-11-18 11:48:53 -05:00
bin logging: Log management commands that are run. 2013-11-20 14:31:08 -05:00
bots [puppet] Add log2zulip tool for sending log files to Zulip. 2013-12-17 11:02:55 -05:00
confirmation Don't use hardcoded noreply@zulip.com, zulip@zulip.com, or https://zulip.com 2013-11-15 21:31:37 -05:00
corporate Modify /hello to go to register instead of signup on Enterprise 2013-11-22 13:50:24 -05:00
humbug Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
node_modules Import Handlebars compiler and dependencies 2013-04-02 14:43:58 -04:00
puppet [manual] restart-server: Minimize downtime for message sender worker. 2013-12-19 17:21:23 -05:00
scripts [manual] restart-server: Minimize downtime for message sender worker. 2013-12-19 17:21:23 -05:00
static Reload the browser on CSRF token errors. 2013-12-19 16:52:52 -05:00
templates Offer a "reload" hyperlink when we have no CSS. 2013-12-18 17:49:34 -05:00
tools Add channel module wrapping our various JSON requests to the server. 2013-12-19 16:52:47 -05:00
zerver Ignore slow queries on certain non-customer-facing URLs. 2013-12-19 17:20:43 -05:00
zilencer Send shorter browser error reports to Zulip 2013-12-12 12:52:21 -05:00
zproject Add channel module wrapping our various JSON requests to the server. 2013-12-19 16:52:47 -05:00
.gitattributes enterprise: Don't include templates/zilencer in our tarballs 2013-11-15 11:53:49 -05:00
.gitignore Add HTML output file for JS unit tests. 2013-11-27 15:09:21 -05:00
LICENSE Add license not referring to Zulip Enterprise license agreement. 2013-11-14 11:16:15 -05:00
manage.py logging: Log management commands that are run. 2013-11-20 14:31:08 -05:00
zulip_tools.py Move su_to_zulip into zulip_tools.py 2013-11-13 16:56:59 -05:00