File tree Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,5 @@ group :production do
183
183
gem 'newrelic_resque_agent'
184
184
gem 'newrelic_rpm'
185
185
gem 'puma'
186
- gem 'puma_worker_killer'
187
186
gem 'rails_12factor'
188
187
end
Original file line number Diff line number Diff line change 264
264
rspec (~> 3.0.rc1 )
265
265
ruby-progressbar (~> 1.4 )
266
266
geocoder (1.2.3 )
267
- get_process_mem (0.2.0 )
268
267
gh (0.13.2 )
269
268
addressable
270
269
backports
472
471
json
473
472
puma (2.9.0 )
474
473
rack (>= 1.1 , < 2.0 )
475
- puma_worker_killer (0.0.3 )
476
- get_process_mem (~> 0.1 )
477
- puma (~> 2.7 )
478
474
pusher-client (0.6.0 )
479
475
json
480
476
websocket (~> 1.0 )
@@ -784,7 +780,6 @@ DEPENDENCIES
784
780
pry-byebug
785
781
pubnub (= 0.1.9 )
786
782
puma
787
- puma_worker_killer
788
783
querystring
789
784
quiet_assets
790
785
rails (~> 3.2 )
Original file line number Diff line number Diff line change 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
-
14
1
require ::File . expand_path ( '../config/environment' , __FILE__ )
15
2
16
3
run Badgiy ::Application
You can’t perform that action at this time.
0 commit comments