Skip to content

Commit f698296

Browse files
committed
Removed Puma Worker Killer
1 parent 88978de commit f698296

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,5 @@ group :production do
183183
gem 'newrelic_resque_agent'
184184
gem 'newrelic_rpm'
185185
gem 'puma'
186-
gem 'puma_worker_killer'
187186
gem 'rails_12factor'
188187
end

Gemfile.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ GEM
264264
rspec (~> 3.0.rc1)
265265
ruby-progressbar (~> 1.4)
266266
geocoder (1.2.3)
267-
get_process_mem (0.2.0)
268267
gh (0.13.2)
269268
addressable
270269
backports
@@ -472,9 +471,6 @@ GEM
472471
json
473472
puma (2.9.0)
474473
rack (>= 1.1, < 2.0)
475-
puma_worker_killer (0.0.3)
476-
get_process_mem (~> 0.1)
477-
puma (~> 2.7)
478474
pusher-client (0.6.0)
479475
json
480476
websocket (~> 1.0)
@@ -784,7 +780,6 @@ DEPENDENCIES
784780
pry-byebug
785781
pubnub (= 0.1.9)
786782
puma
787-
puma_worker_killer
788783
querystring
789784
quiet_assets
790785
rails (~> 3.2)

config.ru

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
if ENV['RAILS_ENV'] == 'production'
2-
require 'puma_worker_killer'
3-
4-
PumaWorkerKiller.config do |config|
5-
# We're on PX instances which allow 6GB
6-
# Set the default to 4GB which allows wiggle room
7-
config.ram = Integer(ENV['PWK_RAM_MB'] || 4096)
8-
config.frequency = 15 # seconds
9-
config.percent_usage = 0.98
10-
end
11-
PumaWorkerKiller.start
12-
end
13-
141
require ::File.expand_path('../config/environment', __FILE__)
152

163
run Badgiy::Application

0 commit comments

Comments
 (0)