You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/patroni_configuration.rst
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,21 +38,21 @@ Important rules
38
38
PostgreSQL parameters controlled by Patroni
39
39
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40
40
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:
42
42
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
49
49
50
50
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>`.
51
51
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
56
56
- **wal_log_hints**: on
57
57
58
58
These parameters are validated to ensure they are sane, or meet a minimum value.
0 commit comments