Skip to content

Commit 9352e82

Browse files
committed
Add description of env vars
1 parent c5a085f commit 9352e82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/config/database_pools.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
//! - `READ_ONLY_REPLICA_URL`: The URL of an optional postgres read-only replica database.
55
//! - `DB_PRIMARY_POOL_SIZE`: The number of connections of the primary database.
66
//! - `DB_REPLICA_POOL_SIZE`: The number of connections of the read-only / replica database.
7+
//! - `DB_PRIMARY_MIN_IDLE`: The primary pool will maintain at least this number of connections.
8+
//! - `DB_REPLICA_MIN_IDLE`: The replica pool will maintain at least this number of connections.
79
//! - `DB_OFFLINE`: If set to `leader` then use the read-only follower as if it was the leader.
810
//! If set to `follower` then act as if `READ_ONLY_REPLICA_URL` was unset.
911
//! - `READ_ONLY_MODE`: If defined (even as empty) then force all connections to be read-only.

0 commit comments

Comments
 (0)