From 94d1ce280917b0699409ea140bd6d71935da322c Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 5 Apr 2026 12:54:21 -0500 Subject: [PATCH] Increase DB pool size to 50 to prevent connection exhaustion under load --- config/runtime.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/runtime.exs b/config/runtime.exs index c96f5d6e..99c8b572 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -98,7 +98,7 @@ if config_env() == :prod do config :microwaveprop, Microwaveprop.Repo, # ssl: true, url: database_url, - pool_size: String.to_integer(System.get_env("POOL_SIZE") || "20"), + pool_size: String.to_integer(System.get_env("POOL_SIZE") || "50"), # For machines with several cores, consider starting multiple pools of `pool_size` # pool_count: 4, socket_options: maybe_ipv6