Increase DB pool size to 50 to prevent connection exhaustion under load
This commit is contained in:
parent
8d008ba934
commit
94d1ce2809
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue