zulip/scripts
Tim Abbott 88a123d5e0 Fix excessive CPU usage by rabbitmq-numconsumers Nagios checks.
The previous model for these Nagios checks was kinda crazy -- every
minute, we'd run a full `rabbitmctl list_consumers` for each of the
dozen+ consumers that we have, and then do the exact same parsing
logic for each to determine whether the target queue has a running
consumer to write out a state file.

Because `rabbitmctl list_consumers` takes a small amount of resources,
on systems where CPU is very limited (e.g. t2 style AWS instances),
this minor CPU wastage could be problematic.

Now we just do that `rabbitmqctl list_consumers` once per minute, and
output all the state files from a single command.

Further TODO items on this front include removing the hardcoded list
of queues.
2016-08-12 14:09:36 -07:00
..
lib travis: Remove rabbitmq nodename dependency on hostname. 2016-08-12 09:38:23 -07:00
nagios Fix excessive CPU usage by rabbitmq-numconsumers Nagios checks. 2016-08-12 14:09:36 -07:00
setup Deduplication of configuration: Database Initialization 2016-08-05 13:33:22 -07:00
__init__.py Factor out venv-creating code from provision.py. 2016-06-21 11:25:41 -07:00
deploy-zulip-from-git scripts: Purge old deployments on every upgrade. 2016-08-04 17:02:48 -07:00
get-django-setting Activate virtualenv in production Python code. 2016-06-27 19:55:35 -07:00
purge-old-deployments purge-old-deployments: Avoid purging last/next deployments. 2016-08-04 17:02:48 -07:00
restart-server restart-server: Maintain a last symlink. 2016-08-04 17:02:48 -07:00
upgrade-zulip Improve shell quoting hygiene 2015-09-25 23:25:08 -04:00
zulip-puppet-apply puppet: Silence puppet warnings about missing hiera.yaml. 2016-07-30 21:25:19 -07:00