fix pool sizes
All checks were successful
Build and Publish / build-release (push) Successful in 2m38s

This commit is contained in:
2026-04-14 16:05:41 -05:00
parent f06eeb13c8
commit f0e592a220
4 changed files with 22 additions and 8 deletions

View File

@@ -7,6 +7,20 @@ import Config
# any compile-time configuration in here, as it won't be applied.
# The block below contains prod specific runtime configuration.
logger_level =
case System.get_env("LOG_LEVEL", "info") do
"debug" -> :debug
"info" -> :info
"warn" -> :warning
"error" -> :error
val when val in ["warning", "error"] -> :error
_ -> :info
end
config :logger, level: logger_level
config :logger, :console, format: {Logger.Formatter, :format}
# ## Using releases
#
# If you use `mix release`, you need to explicitly enable the server
@@ -39,13 +53,13 @@ if config_env() == :prod do
config :policy_service, PolicyService.Repo,
url: database_url,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
pool_size: 1,
socket_options: maybe_ipv6
config :policy_service, PolicyService.EventStore,
serializer: Commanded.Serialization.JsonSerializer,
url: database_url,
pool_size: 5
pool_size: 1
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||