Skip to content

Commit 4862d15

Browse files
committed
Production: 10 s database connect timeout (and 5 min idle), so a pod whose network policy is still being applied waits instead of crashing at boot
1 parent 5f1e749 commit 4862d15

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎server/config/production.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ database:
9494
# When enabled, the sql query will be logged.
9595
enable_logging: <%= get_env(name="DB_LOGGING", default="false") %>
9696
# Set the timeout duration when acquiring a connection.
97-
connect_timeout: <%= get_env(name="DB_CONNECT_TIMEOUT", default="500") %>
97+
connect_timeout: <%= get_env(name="DB_CONNECT_TIMEOUT", default="10000") %>
9898
# Set the idle duration before closing a connection.
99-
idle_timeout: <%= get_env(name="DB_IDLE_TIMEOUT", default="500") %>
99+
idle_timeout: <%= get_env(name="DB_IDLE_TIMEOUT", default="300000") %>
100100
# Minimum number of connections for a pool.
101101
min_connections: <%= get_env(name="DB_MIN_CONNECTIONS", default="1") %>
102102
# Maximum number of connections for a pool. Serving real traffic on the

0 commit comments

Comments
 (0)