Commit 500dcb7e authored by Nikola Milojevic's avatar Nikola Milojevic

Merge branch 'alipniagov-cleanup-puma-5-update' into 'master'

Cleanup Puma 5 upgrade transition code

See merge request gitlab-org/gitlab!61572
parents 2f8a9917 e63f1edc
...@@ -80,14 +80,10 @@ tag 'gitlab-puma-worker' ...@@ -80,14 +80,10 @@ tag 'gitlab-puma-worker'
worker_timeout 60 worker_timeout 60
# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#lower-latency-better-throughput # https://github.com/puma/puma/blob/master/5.0-Upgrade.md#lower-latency-better-throughput
if defined?(wait_for_less_busy_worker) wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
end
# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#nakayoshi_fork # https://github.com/puma/puma/blob/master/5.0-Upgrade.md#nakayoshi_fork
if defined?(nakayoshi_fork) nakayoshi_fork unless ENV['DISABLE_PUMA_NAKAYOSHI_FORK'] == 'true'
nakayoshi_fork unless ENV['DISABLE_PUMA_NAKAYOSHI_FORK'] == 'true'
end
# Use json formatter # Use json formatter
require_relative "/home/git/gitlab/lib/gitlab/puma_logging/json_formatter" require_relative "/home/git/gitlab/lib/gitlab/puma_logging/json_formatter"
......
...@@ -70,14 +70,10 @@ tag 'gitlab-puma-worker' ...@@ -70,14 +70,10 @@ tag 'gitlab-puma-worker'
worker_timeout 60 worker_timeout 60
# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#lower-latency-better-throughput # https://github.com/puma/puma/blob/master/5.0-Upgrade.md#lower-latency-better-throughput
if defined?(wait_for_less_busy_worker) wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
end
# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#nakayoshi_fork # https://github.com/puma/puma/blob/master/5.0-Upgrade.md#nakayoshi_fork
if defined?(nakayoshi_fork) nakayoshi_fork unless ENV['DISABLE_PUMA_NAKAYOSHI_FORK'] == 'true'
nakayoshi_fork unless ENV['DISABLE_PUMA_NAKAYOSHI_FORK'] == 'true'
end
# Use json formatter # Use json formatter
require_relative "/home/git/gitlab/lib/gitlab/puma_logging/json_formatter" require_relative "/home/git/gitlab/lib/gitlab/puma_logging/json_formatter"
......
...@@ -80,14 +80,10 @@ tag 'gitlab-actioncable-puma-worker' ...@@ -80,14 +80,10 @@ tag 'gitlab-actioncable-puma-worker'
worker_timeout 60 worker_timeout 60
# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#lower-latency-better-throughput # https://github.com/puma/puma/blob/master/5.0-Upgrade.md#lower-latency-better-throughput
if defined?(wait_for_less_busy_worker) wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
end
# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#nakayoshi_fork # https://github.com/puma/puma/blob/master/5.0-Upgrade.md#nakayoshi_fork
if defined?(nakayoshi_fork) nakayoshi_fork unless ENV['DISABLE_PUMA_NAKAYOSHI_FORK'] == 'true'
nakayoshi_fork unless ENV['DISABLE_PUMA_NAKAYOSHI_FORK'] == 'true'
end
# Use json formatter # Use json formatter
require_relative "/home/git/gitlab/lib/gitlab/puma_logging/json_formatter" require_relative "/home/git/gitlab/lib/gitlab/puma_logging/json_formatter"
......
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