[puppet] Add cron job to restart our workers daily.

This is to ensure that if we have an interval where we're not doing
prod deploys, we don't have to worry about worker memory leaks killing
us.

(imported from commit 0b0180b0751f6c618d877b9c9ffc2b8287254e4d)
This commit is contained in:
Tim Abbott 2013-11-20 14:26:04 -05:00
parent 511856eba2
commit f0c6b63526
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,5 @@
MAILTO=root
# Restart all of our Django workers at 7:37AM every day
# This is to handle the fact that we have memory leaks.
37 7 * * * zulip supervisorctl restart zulip-workers:*

View File

@ -19,4 +19,11 @@ class zulip_internal::app_frontend {
notify => Service["nginx"],
}
file { "/etc/cron.d/restart-workers":
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/zulip_internal/cron.d/restart-workers",
}
}