chore: tune default postgres settings for 2c4g

This commit is contained in:
fawney19
2026-05-21 01:36:05 +08:00
parent e7f8b259ac
commit b84e4a96e2
4 changed files with 13 additions and 13 deletions

View File

@@ -254,7 +254,7 @@ struct GatewayDataArgs {
#[arg(
long,
env = "AETHER_GATEWAY_DATA_POSTGRES_MIN_CONNECTIONS",
default_value_t = 1
default_value_t = 4
)]
postgres_min_connections: u32,
@@ -1670,7 +1670,7 @@ mod tests {
encryption_key: None,
redis_url: None,
redis_key_prefix: None,
postgres_min_connections: 1,
postgres_min_connections: 4,
postgres_max_connections: 20,
postgres_acquire_timeout_ms: 10_000,
postgres_idle_timeout_ms: 30_000,