Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 14 additions & 20 deletions docs/solutions/ha-setup-apt.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,31 +357,19 @@ Run the following commands on all nodes. You can do this in parallel:
archive_mode: "on"
archive_timeout: 600s
archive_command: "cp -f %p /home/postgres/archived/%f"
pg_hba:
- local all all peer
- host replication replicator 127.0.0.1/32 trust
- host replication replicator 192.0.0.0/8 scram-sha-256
- host all all 0.0.0.0/0 scram-sha-256
recovery_conf:
restore_command: cp /home/postgres/archived/%f %p

# some desired options for 'initdb'
initdb: # Note: It needs to be a list (some options need values, others are switches)
- encoding: UTF8
- data-checksums

pg_hba: # Add following lines to pg_hba.conf after running 'initdb'
- host replication replicator 127.0.0.1/32 trust
- host replication replicator 0.0.0.0/0 md5
- host all all 0.0.0.0/0 md5
- host all all ::0/0 md5

# Some additional users which needs to be created after initializing new cluster
users:
admin:
password: qaz123
options:
- createrole
- createdb
percona:
password: qaz123
options:
- createrole
- createdb


postgresql:
cluster_name: cluster_1
listen: 0.0.0.0:5432
Expand All @@ -403,6 +391,12 @@ Run the following commands on all nodes. You can do this in parallel:
basebackup:
checkpoint: 'fast'

watchdog:
mode: required # Allowed values: off, automatic, required
device: /dev/watchdog
safety_margin: 5


tags:
nofailover: false
noloadbalance: false
Expand Down
34 changes: 14 additions & 20 deletions docs/solutions/ha-setup-yum.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,31 +366,19 @@ Run the following commands on all nodes. You can do this in parallel:
archive_mode: "on"
archive_timeout: 600s
archive_command: "cp -f %p /home/postgres/archived/%f"
pg_hba:
- local all all peer
- host replication replicator 127.0.0.1/32 trust
- host replication replicator 192.0.0.0/8 scram-sha-256
- host all all 0.0.0.0/0 scram-sha-256
recovery_conf:
restore_command: cp /home/postgres/archived/%f %p

# some desired options for 'initdb'
initdb: # Note: It needs to be a list (some options need values, others are switches)
- encoding: UTF8
- data-checksums

pg_hba: # Add following lines to pg_hba.conf after running 'initdb'
- host replication replicator 127.0.0.1/32 trust
- host replication replicator 0.0.0.0/0 md5
- host all all 0.0.0.0/0 md5
- host all all ::0/0 md5

# Some additional users which needs to be created after initializing new cluster
users:
admin:
password: qaz123
options:
- createrole
- createdb
percona:
password: qaz123
options:
- createrole
- createdb


postgresql:
cluster_name: cluster_1
listen: 0.0.0.0:5432
Expand All @@ -412,6 +400,12 @@ Run the following commands on all nodes. You can do this in parallel:
basebackup:
checkpoint: 'fast'

watchdog:
mode: required # Allowed values: off, automatic, required
device: /dev/watchdog
safety_margin: 5


tags:
nofailover: false
noloadbalance: false
Expand Down