Skip to content

Commit 1a18b0a

Browse files
committed
Bumped up the PumaWorkerKiller threshold to 4GB and allowed for ENV override. The PX dynos have 6GB of RAM
1 parent 8879959 commit 1a18b0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config.ru

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ if ENV['RAILS_ENV'] == 'production'
22
require 'puma_worker_killer'
33

44
PumaWorkerKiller.config do |config|
5-
config.ram = 260 # mb
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)
68
config.frequency = 15 # seconds
79
config.percent_usage = 0.98
810
end

0 commit comments

Comments
 (0)