Increase DB pool size to 50 to prevent connection exhaustion under load

This commit is contained in:
Graham McIntire 2026-04-05 12:54:21 -05:00
parent 8d008ba934
commit 94d1ce2809
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -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