tweak queue_target further

This commit is contained in:
Jamil Bou Kheir
2021-04-01 18:47:21 -07:00
parent fc51c5ddee
commit cb114ea76c
2 changed files with 6 additions and 4 deletions

View File

@@ -28,7 +28,8 @@ default_egress_address =
|> String.trim()
# Optional environment variables
pool_size = String.to_integer(System.get_env("POOL_SIZE", "10"))
pool_size = :erlang.system_info(:logical_processors_available)
queue_target = 500
https_listen_port = String.to_integer(System.get_env("HTTPS_LISTEN_PORT", "8800"))
wg_listen_port = System.get_env("WG_LISTEN_PORT", "51820")
wg_endpoint_address = System.get_env("WG_ENDPOINT_ADDRESS", default_egress_address)
@@ -40,7 +41,8 @@ config :fg_http,
config :fg_http, FgHttp.Repo,
# ssl: true,
url: database_url,
pool_size: pool_size
pool_size: pool_size,
queue_target: queue_target
base_opts = [
port: https_listen_port,

View File

@@ -9,7 +9,7 @@ defmodule DBConfig do
hostname: System.get_env("POSTGRES_HOST", "localhost"),
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: :erlang.system_info(:logical_processors_available),
queue_target: 5000
queue_target: 1000
]
end
@@ -18,7 +18,7 @@ defmodule DBConfig do
url: db_url,
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: :erlang.system_info(:logical_processors_available),
queue_target: 5000
queue_target: 1000
]
end
end