Skip to content

Commit

Permalink
Merge pull request #319 from openstax/instance_size
Browse files Browse the repository at this point in the history
Updated puma_worker_killer memory limit for larger instance size
  • Loading branch information
Dantemss authored Mar 26, 2021
2 parents 28a84eb + 9b89ed2 commit bf7a8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
PumaWorkerKiller.config do |config|
# Restart workers when they start consuming more than 1G each
config.ram = ENV.fetch('MAX_MEMORY') do
ENV.fetch('MAX_WORKER_MEMORY', 256).to_i * NUM_WORKERS
ENV.fetch('MAX_WORKER_MEMORY', 512).to_i * NUM_WORKERS
end.to_i

config.frequency = 10
Expand Down

0 comments on commit bf7a8aa

Please sign in to comment.