Skip to content

Commit 9b7e8b3

Browse files
Bump PG slots max_replication_slots / max_wal_senders = 25 (#1037)
* Bump PG slots max_replication_slots / max_wal_senders = 25 To support logical replications and keep 9 units installation possible + async replication, we should bump slots count.
1 parent 47466e0 commit 9b7e8b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/charm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2344,6 +2344,8 @@ def update_config(
23442344
self._patroni.bulk_update_parameters_controller_by_patroni({
23452345
"max_connections": max_connections,
23462346
"max_prepared_transactions": self.config.memory_max_prepared_transactions,
2347+
"max_replication_slots": 25,
2348+
"max_wal_senders": 25,
23472349
"wal_keep_size": self.config.durability_wal_keep_size,
23482350
})
23492351

0 commit comments

Comments
 (0)