Commit d987e5a0 authored by Stan Hu's avatar Stan Hu

Merge branch 'bjk/splay_puma_restarts' into 'master'

Increase splay of Puma worker restarts

See merge request gitlab-org/gitlab!52079
parents fd763c1e 0cdc5125
---
title: Increase splay of Puma worker restarts
merge_request: 52079
author:
type: other
......@@ -35,6 +35,10 @@ module Gitlab
# regularly rather than rely on OOM behavior for periodic restarting.
config.rolling_restart_frequency = 43200 # 12 hours in seconds.
# Spread the rolling restarts out over 1 hour to avoid too many simultaneous
# process startups.
config.rolling_restart_splay_seconds = 0.0..3600.0 # 0 to 1 hour in seconds.
observer = Gitlab::Cluster::PumaWorkerKillerObserver.new
config.pre_term = observer.callback
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment