Skip to content

Commit e3850a8

Browse files
authored
Update patroni_configuration.rst (patroni#3324)
1 parent 081992d commit e3850a8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/patroni_configuration.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@ Important rules
3838
PostgreSQL parameters controlled by Patroni
3939
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4040

41-
Some of the PostgreSQL parameters **must hold the same values on the primary and the replicas**. For those, **values set either in the local patroni configuration files or via the environment variables take no effect**. To alter or set their values one must change the shared configuration in the DCS. Below is the actual list of such parameters together with the default values:
41+
Some of the PostgreSQL parameters **must hold the same values on the primary and the replicas**. For those, **values set either in the local patroni configuration files or via the environment variables take no effect**. To alter or set their values one must change the shared configuration in the DCS. Below is the actual list of such parameters together with the default and minimal values:
4242

43-
- **max_connections**: 100
44-
- **max_locks_per_transaction**: 64
45-
- **max_worker_processes**: 8
46-
- **max_prepared_transactions**: 0
47-
- **wal_level**: hot_standby
48-
- **track_commit_timestamp**: off
43+
- **max_connections**: default value 100, minimal value 25
44+
- **max_locks_per_transaction**: default value 64, minimal value 32
45+
- **max_worker_processes**: default value 8, minimal value 2
46+
- **max_prepared_transactions**: default value 0, minimal value 0
47+
- **wal_level**: default value hot_standby, accepted values: hot_standby, replica, logical
48+
- **track_commit_timestamp**: default value off
4949

5050
For the parameters below, PostgreSQL does not require equal values among the primary and all the replicas. However, considering the possibility of a replica to become the primary at any time, it doesn't really make sense to set them differently; therefore, **Patroni restricts setting their values to the** :ref:`dynamic configuration <dynamic_configuration>`.
5151

52-
- **max_wal_senders**: 10
53-
- **max_replication_slots**: 10
54-
- **wal_keep_segments**: 8
55-
- **wal_keep_size**: 128MB
52+
- **max_wal_senders**: default value 10, minimal value 3
53+
- **max_replication_slots**: default value 10, minimal value 4
54+
- **wal_keep_segments**: default value 8, minimal value 1
55+
- **wal_keep_size**: default value 128MB, minimal value 16MB
5656
- **wal_log_hints**: on
5757

5858
These parameters are validated to ensure they are sane, or meet a minimum value.

0 commit comments

Comments
 (0)