Commit fe980002 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs-reference-arch-patroni-settings-update' into 'master'

Update Patroni Postgres settings for HA environments

See merge request gitlab-org/gitlab!67231
parents 5970bfc7 6c001472
...@@ -568,12 +568,12 @@ in the second step, do not supply the `EXTERNAL_URL` value. ...@@ -568,12 +568,12 @@ in the second step, do not supply the `EXTERNAL_URL` value.
# Sets `max_replication_slots` to double the number of database nodes. # Sets `max_replication_slots` to double the number of database nodes.
# Patroni uses one extra slot per node when initiating the replication. # Patroni uses one extra slot per node when initiating the replication.
patroni['postgresql']['max_replication_slots'] = 8 patroni['postgresql']['max_replication_slots'] = 6
# Set `max_wal_senders` to one more than the number of replication slots in the cluster. # Set `max_wal_senders` to one more than the number of replication slots in the cluster.
# This is used to prevent replication from using up all of the # This is used to prevent replication from using up all of the
# available database connections. # available database connections.
patroni['postgresql']['max_wal_senders'] = 9 patroni['postgresql']['max_wal_senders'] = 7
# Incoming recommended value for max connections is 500. See https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5691. # Incoming recommended value for max connections is 500. See https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5691.
patroni['postgresql']['max_connections'] = 500 patroni['postgresql']['max_connections'] = 500
......
...@@ -570,12 +570,12 @@ in the second step, do not supply the `EXTERNAL_URL` value. ...@@ -570,12 +570,12 @@ in the second step, do not supply the `EXTERNAL_URL` value.
# Sets `max_replication_slots` to double the number of database nodes. # Sets `max_replication_slots` to double the number of database nodes.
# Patroni uses one extra slot per node when initiating the replication. # Patroni uses one extra slot per node when initiating the replication.
patroni['postgresql']['max_replication_slots'] = 8 patroni['postgresql']['max_replication_slots'] = 6
# Set `max_wal_senders` to one more than the number of replication slots in the cluster. # Set `max_wal_senders` to one more than the number of replication slots in the cluster.
# This is used to prevent replication from using up all of the # This is used to prevent replication from using up all of the
# available database connections. # available database connections.
patroni['postgresql']['max_wal_senders'] = 9 patroni['postgresql']['max_wal_senders'] = 7
# Incoming recommended value for max connections is 500. See https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5691. # Incoming recommended value for max connections is 500. See https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5691.
patroni['postgresql']['max_connections'] = 500 patroni['postgresql']['max_connections'] = 500
......
...@@ -577,12 +577,12 @@ in the second step, do not supply the `EXTERNAL_URL` value. ...@@ -577,12 +577,12 @@ in the second step, do not supply the `EXTERNAL_URL` value.
# Sets `max_replication_slots` to double the number of database nodes. # Sets `max_replication_slots` to double the number of database nodes.
# Patroni uses one extra slot per node when initiating the replication. # Patroni uses one extra slot per node when initiating the replication.
patroni['postgresql']['max_replication_slots'] = 8 patroni['postgresql']['max_replication_slots'] = 6
# Set `max_wal_senders` to one more than the number of replication slots in the cluster. # Set `max_wal_senders` to one more than the number of replication slots in the cluster.
# This is used to prevent replication from using up all of the # This is used to prevent replication from using up all of the
# available database connections. # available database connections.
patroni['postgresql']['max_wal_senders'] = 9 patroni['postgresql']['max_wal_senders'] = 7
# Incoming recommended value for max connections is 500. See https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5691. # Incoming recommended value for max connections is 500. See https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5691.
patroni['postgresql']['max_connections'] = 500 patroni['postgresql']['max_connections'] = 500
......
...@@ -841,12 +841,12 @@ in the second step, do not supply the `EXTERNAL_URL` value. ...@@ -841,12 +841,12 @@ in the second step, do not supply the `EXTERNAL_URL` value.
# Sets `max_replication_slots` to double the number of database nodes. # Sets `max_replication_slots` to double the number of database nodes.
# Patroni uses one extra slot per node when initiating the replication. # Patroni uses one extra slot per node when initiating the replication.
patroni['postgresql']['max_replication_slots'] = 8 patroni['postgresql']['max_replication_slots'] = 6
# Set `max_wal_senders` to one more than the number of replication slots in the cluster. # Set `max_wal_senders` to one more than the number of replication slots in the cluster.
# This is used to prevent replication from using up all of the # This is used to prevent replication from using up all of the
# available database connections. # available database connections.
patroni['postgresql']['max_wal_senders'] = 9 patroni['postgresql']['max_wal_senders'] = 7
# Incoming recommended value for max connections is 500. See https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5691. # Incoming recommended value for max connections is 500. See https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5691.
patroni['postgresql']['max_connections'] = 500 patroni['postgresql']['max_connections'] = 500
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment