From 9b89ed28e852f4ae402c4e16a1183024cd9fe4f3 Mon Sep 17 00:00:00 2001 From: Dante Soares Date: Mon, 1 Mar 2021 12:12:14 -0600 Subject: [PATCH] Updated puma_worker_killer memory limit for larger instance size --- config/puma.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/puma.rb b/config/puma.rb index 0fa2f105..8a49361e 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -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