From 9c69141db5f65575ef12e8c83b4a31b0d43bc482 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Wed, 25 Jun 2025 12:10:04 -0500 Subject: [PATCH] postgres tweaks --- config/runtime.exs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index ecae782..1e74cf2 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -49,11 +49,13 @@ if config_env() == :prod do config :aprsme, Aprsme.Repo, # ssl: true, url: database_url, - pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"), + pool_size: String.to_integer(System.get_env("POOL_SIZE") || "20"), pool_timeout: String.to_integer(System.get_env("POOL_TIMEOUT") || "5000"), timeout: String.to_integer(System.get_env("DB_TIMEOUT") || "15000"), socket_options: maybe_ipv6, - types: Aprsme.PostgresTypes + types: Aprsme.PostgresTypes, + queue_target: 10_000, + queue_interval: 20_000 config :aprsme, AprsmeWeb.Endpoint, url: [host: host, port: 443, scheme: "https"],