diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-11-28 15:01:41 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-11-28 15:01:41 +0100 |
commit | 64ab6c9ed54d1c0a86f4c3bb6b87fcac882da0c0 (patch) | |
tree | acb68d37d12268d43cf87a89fe8094c744268685 /config | |
parent | 3a723ad24c56404a4180b011bd577153f9d25ccd (diff) | |
download | gitlab-ce-64ab6c9ed54d1c0a86f4c3bb6b87fcac882da0c0.tar.gz |
Add 'MemoryKiller' Sidekiq middleware
When enabled, this middleware allows Sidekiq to detect that its RSS has
exceeded a maximum value, triggering a graceful shutdown. This
middleware should be combined with external process supervision that
will restart Sidekiq after the graceful shutdown, such as Runit.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/4_sidekiq.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/4_sidekiq.rb b/config/initializers/4_sidekiq.rb index 228b14cb526..b8a7fd624a5 100644 --- a/config/initializers/4_sidekiq.rb +++ b/config/initializers/4_sidekiq.rb @@ -15,6 +15,7 @@ Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add Gitlab::SidekiqMiddleware::ArgumentsLogger + chain.add Gitlab::SidekiqMiddleware::MemoryKiller if ENV['SIDEKIQ_MAX_RSS'] end end |