Skip to content

Commit a6e4730

Browse files
committed
chore: update database pool size and add queue target in production config
1 parent 8c8c3a1 commit a6e4730

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/runtime.exs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ if config_env() == :prod do
5555
config :algora, Algora.Repo,
5656
# ssl: true,
5757
url: database_url,
58-
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
58+
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "20"),
5959
socket_options: maybe_ipv6,
6060
migration_primary_key: [type: :string],
61-
migration_timestamps: [type: :utc_datetime_usec]
61+
migration_timestamps: [type: :utc_datetime_usec],
62+
queue_target: 5000
6263

6364
config :ex_aws,
6465
json_codec: Jason,

0 commit comments

Comments
 (0)