mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-02-07 17:50:18 +00:00
tweak queue_target further
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user