summaryrefslogtreecommitdiff
path: root/config.ru
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-16 18:25:58 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-16 18:25:58 +0000
commita5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch)
treefb69158581673816a8cd895f9d352dcb3c678b1e /config.ru
parentd16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff)
downloadgitlab-ce-a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4.tar.gz
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru17
1 files changed, 1 insertions, 16 deletions
diff --git a/config.ru b/config.ru
index 0c50b3fdf6f..ed76239ef2e 100644
--- a/config.ru
+++ b/config.ru
@@ -2,25 +2,10 @@
# This file is used by Rack-based servers to start the application.
-if defined?(Unicorn)
- require 'unicorn'
-
- if ENV['RAILS_ENV'] == 'production' || ENV['RAILS_ENV'] == 'staging'
- # Unicorn self-process killer
- require 'unicorn/worker_killer'
-
- min = (ENV['GITLAB_UNICORN_MEMORY_MIN'] || 400 * 1 << 20).to_i
- max = (ENV['GITLAB_UNICORN_MEMORY_MAX'] || 650 * 1 << 20).to_i
-
- # Max memory size (RSS) per worker
- use Unicorn::WorkerKiller::Oom, min, max
- end
-end
-
require ::File.expand_path('../config/environment', __FILE__)
def master_process?
- Prometheus::PidProvider.worker_id.in? %w(unicorn_master puma_master)
+ Prometheus::PidProvider.worker_id == 'puma_master'
end
warmup do |app|