From 606c16213888eb7d4107384ae4da51170cf72b55 Mon Sep 17 00:00:00 2001 From: Manu S Ajith Date: Thu, 7 Jul 2022 02:15:13 -0500 Subject: [PATCH] Add option to configure sentry pool size, and geolix worker size (#1992) Signed-off-by: Manu S Ajith --- config/runtime.exs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/runtime.exs b/config/runtime.exs index d6cd68592..e94bf1f36 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -227,7 +227,8 @@ config :sentry, release: app_version, tags: %{app_version: app_version}, enable_source_code_context: true, - root_source_code_path: [File.cwd!()] + root_source_code_path: [File.cwd!()], + hackney_pool_max_connections: get_var_from_path_or_env(config_dir, "SENTRY_POOL_SIZE") || 50 config :logger, Sentry.LoggerBackend, capture_log_messages: true, @@ -403,6 +404,10 @@ config :kaffy, if config_env() != :test do config :geolix, + pool: [ + size: get_var_from_path_or_env(config_dir, "GEOLIX_POOL_SIZE") || 5, + max_overflow: get_var_from_path_or_env(config_dir, "GEOLIX_POOL_MAX_OVERLFOW") || 10 + ], databases: [ %{ id: :geolocation,