Commit 5a65a5ab authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Update puma & puma_worker_killer to upstream (5.1)

The changes which required to use our own Puma fork now in the upstream,
so we need to update to it for the future support.
parent d6ec8b7b
...@@ -184,8 +184,8 @@ group :unicorn do ...@@ -184,8 +184,8 @@ group :unicorn do
end end
group :puma do group :puma do
gem 'gitlab-puma', '~> 4.3.3.gitlab.2', require: false gem 'puma', '~> 5.1.1', require: false
gem 'gitlab-puma_worker_killer', '~> 0.1.1.gitlab.1', require: false gem 'puma_worker_killer', '~> 0.3.1', require: false
end end
# State machine # State machine
...@@ -410,7 +410,7 @@ group :test do ...@@ -410,7 +410,7 @@ group :test do
gem 'rspec_profiling', '~> 0.0.6' gem 'rspec_profiling', '~> 0.0.6'
gem 'rspec-parameterized', require: false gem 'rspec-parameterized', require: false
gem 'capybara', '~> 3.33.0' gem 'capybara', '~> 3.34.0'
gem 'capybara-screenshot', '~> 1.0.22' gem 'capybara-screenshot', '~> 1.0.22'
gem 'selenium-webdriver', '~> 3.142' gem 'selenium-webdriver', '~> 3.142'
......
...@@ -152,7 +152,7 @@ GEM ...@@ -152,7 +152,7 @@ GEM
bundler (>= 1.2.0, < 3) bundler (>= 1.2.0, < 3)
thor (~> 0.18) thor (~> 0.18)
byebug (11.1.3) byebug (11.1.3)
capybara (3.33.0) capybara (3.34.0)
addressable addressable
mini_mime (>= 0.1.3) mini_mime (>= 0.1.3)
nokogiri (~> 1.8) nokogiri (~> 1.8)
...@@ -447,11 +447,6 @@ GEM ...@@ -447,11 +447,6 @@ GEM
gitlab-markup (1.7.1) gitlab-markup (1.7.1)
gitlab-net-dns (0.9.1) gitlab-net-dns (0.9.1)
gitlab-pg_query (1.3.1) gitlab-pg_query (1.3.1)
gitlab-puma (4.3.5.gitlab.3)
nio4r (~> 2.0)
gitlab-puma_worker_killer (0.1.1.gitlab.1)
get_process_mem (~> 0.2)
gitlab-puma (>= 2.7, < 5)
gitlab-sidekiq-fetcher (0.5.2) gitlab-sidekiq-fetcher (0.5.2)
sidekiq (~> 5) sidekiq (~> 5)
gitlab-styles (5.4.0) gitlab-styles (5.4.0)
...@@ -876,6 +871,11 @@ GEM ...@@ -876,6 +871,11 @@ GEM
pry-rails (0.3.9) pry-rails (0.3.9)
pry (>= 0.10.4) pry (>= 0.10.4)
public_suffix (4.0.6) public_suffix (4.0.6)
puma (5.1.1)
nio4r (~> 2.0)
puma_worker_killer (0.3.1)
get_process_mem (~> 0.2)
puma (>= 2.7)
pyu-ruby-sasl (0.0.3.3) pyu-ruby-sasl (0.0.3.3)
raabro (1.1.6) raabro (1.1.6)
racc (1.5.2) racc (1.5.2)
...@@ -1301,7 +1301,7 @@ DEPENDENCIES ...@@ -1301,7 +1301,7 @@ DEPENDENCIES
browser (~> 4.2) browser (~> 4.2)
bullet (~> 6.1.0) bullet (~> 6.1.0)
bundler-audit (~> 0.6.1) bundler-audit (~> 0.6.1)
capybara (~> 3.33.0) capybara (~> 3.34.0)
capybara-screenshot (~> 1.0.22) capybara-screenshot (~> 1.0.22)
carrierwave (~> 1.3) carrierwave (~> 1.3)
charlock_holmes (~> 0.7.7) charlock_holmes (~> 0.7.7)
...@@ -1365,8 +1365,6 @@ DEPENDENCIES ...@@ -1365,8 +1365,6 @@ DEPENDENCIES
gitlab-mail_room (~> 0.0.8) gitlab-mail_room (~> 0.0.8)
gitlab-markup (~> 1.7.1) gitlab-markup (~> 1.7.1)
gitlab-net-dns (~> 0.9.1) gitlab-net-dns (~> 0.9.1)
gitlab-puma (~> 4.3.3.gitlab.2)
gitlab-puma_worker_killer (~> 0.1.1.gitlab.1)
gitlab-sidekiq-fetcher (= 0.5.2) gitlab-sidekiq-fetcher (= 0.5.2)
gitlab-styles (~> 5.4.0) gitlab-styles (~> 5.4.0)
gitlab_chronic_duration (~> 0.10.6.2) gitlab_chronic_duration (~> 0.10.6.2)
...@@ -1460,6 +1458,8 @@ DEPENDENCIES ...@@ -1460,6 +1458,8 @@ DEPENDENCIES
prometheus-client-mmap (~> 0.12.0) prometheus-client-mmap (~> 0.12.0)
pry-byebug (~> 3.9.0) pry-byebug (~> 3.9.0)
pry-rails (~> 0.3.9) pry-rails (~> 0.3.9)
puma (~> 5.1.1)
puma_worker_killer (~> 0.3.1)
rack (~> 2.2.3) rack (~> 2.2.3)
rack-attack (~> 6.3.0) rack-attack (~> 6.3.0)
rack-cors (~> 1.0.6) rack-cors (~> 1.0.6)
......
---
title: Update puma & puma_worker_killer to upstream
merge_request: 48897
author:
type: changed
...@@ -79,6 +79,11 @@ tag 'gitlab-puma-worker' ...@@ -79,6 +79,11 @@ 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
if defined?(wait_for_less_busy_worker)
wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
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"
......
...@@ -69,6 +69,11 @@ tag 'gitlab-puma-worker' ...@@ -69,6 +69,11 @@ 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
if defined?(wait_for_less_busy_worker)
wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
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"
......
...@@ -79,6 +79,11 @@ tag 'gitlab-actioncable-puma-worker' ...@@ -79,6 +79,11 @@ 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
if defined?(wait_for_less_busy_worker)
wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f
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