zulip/puppet
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
..
apt Fix missing newlines at ends of JSON files. 2016-04-14 10:48:52 -07:00
stdlib Fix missing newlines at ends of JSON files. 2016-04-14 10:48:52 -07:00
zulip Fix excessive CPU usage by rabbitmq-numconsumers Nagios checks. 2016-08-12 14:09:36 -07:00
zulip_internal Remove moreutils from zulip_internal::base. 2016-08-11 18:12:59 -07:00