Skip to content

Commit

Permalink
Revert "Uninstall puma_worker_killer"
Browse files Browse the repository at this point in the history
This reverts commit 213bace.
  • Loading branch information
fblupi committed Dec 3, 2024
1 parent fb5a2cb commit aad174a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ group :production do
gem "dalli"
gem "lograge"
gem "matrix"
gem "puma_worker_killer" # Used to restart puma workers every 6h and free memory
gem "rack_password"
gem "rack-ssl-enforcer"
gem "rack-timeout" # Let's kill long-running requests after the Heroku router has responded to
Expand Down
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,8 @@ GEM
base64 (>= 0.1.0)
csv (>= 3.0.0)
geom2d (0.4.1)
get_process_mem (0.2.7)
ffi (~> 1.0)
globalid (1.2.1)
activesupport (>= 6.1)
graphql (2.0.31)
Expand Down Expand Up @@ -719,6 +721,9 @@ GEM
public_suffix (6.0.1)
puma (6.4.2)
nio4r (~> 2.0)
puma_worker_killer (0.3.1)
get_process_mem (~> 0.2)
puma (>= 2.7)
racc (1.8.1)
rack (2.2.10)
rack-attack (6.7.0)
Expand Down Expand Up @@ -1017,6 +1022,7 @@ DEPENDENCIES
origami
progressbar
puma
puma_worker_killer
rack-ssl-enforcer
rack-timeout
rack_password
Expand Down
6 changes: 6 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@

port ENV.fetch("PORT", nil) || 3000
environment ENV.fetch("RACK_ENV", nil) || "development"

before_fork do
require "puma_worker_killer"

PumaWorkerKiller.enable_rolling_restart
end

0 comments on commit aad174a

Please sign in to comment.