mirror of https://github.com/zulip/zulip.git
[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:
parent
511856eba2
commit
f0c6b63526
|
@ -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:*
|
|
@ -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",
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue