Skip to content

Commit 4ebd0d5

Browse files
committed
Merge branch '15' of https://github.com/percona/postgresql-docs into 15
2 parents d400411 + 3a7274d commit 4ebd0d5

File tree

2 files changed

+28
-40
lines changed

2 files changed

+28
-40
lines changed

docs/solutions/ha-setup-apt.md

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -352,31 +352,19 @@ Run the following commands on all nodes. You can do this in parallel:
352352
archive_mode: "on"
353353
archive_timeout: 600s
354354
archive_command: "cp -f %p /home/postgres/archived/%f"
355+
pg_hba:
356+
- local all all peer
357+
- host replication replicator 127.0.0.1/32 trust
358+
- host replication replicator 192.0.0.0/8 scram-sha-256
359+
- host all all 0.0.0.0/0 scram-sha-256
360+
recovery_conf:
361+
restore_command: cp /home/postgres/archived/%f %p
355362
356363
# some desired options for 'initdb'
357364
initdb: # Note: It needs to be a list (some options need values, others are switches)
358365
- encoding: UTF8
359366
- data-checksums
360-
361-
pg_hba: # Add following lines to pg_hba.conf after running 'initdb'
362-
- host replication replicator 127.0.0.1/32 trust
363-
- host replication replicator 0.0.0.0/0 md5
364-
- host all all 0.0.0.0/0 md5
365-
- host all all ::0/0 md5
366-
367-
# Some additional users which needs to be created after initializing new cluster
368-
users:
369-
admin:
370-
password: qaz123
371-
options:
372-
- createrole
373-
- createdb
374-
percona:
375-
password: qaz123
376-
options:
377-
- createrole
378-
- createdb
379-
367+
380368
postgresql:
381369
cluster_name: cluster_1
382370
listen: 0.0.0.0:5432
@@ -398,6 +386,12 @@ Run the following commands on all nodes. You can do this in parallel:
398386
basebackup:
399387
checkpoint: 'fast'
400388
389+
watchdog:
390+
mode: required # Allowed values: off, automatic, required
391+
device: /dev/watchdog
392+
safety_margin: 5
393+
394+
401395
tags:
402396
nofailover: false
403397
noloadbalance: false

docs/solutions/ha-setup-yum.md

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -367,31 +367,19 @@ Run the following commands on all nodes. You can do this in parallel:
367367
archive_mode: "on"
368368
archive_timeout: 600s
369369
archive_command: "cp -f %p /home/postgres/archived/%f"
370+
pg_hba:
371+
- local all all peer
372+
- host replication replicator 127.0.0.1/32 trust
373+
- host replication replicator 192.0.0.0/8 scram-sha-256
374+
- host all all 0.0.0.0/0 scram-sha-256
375+
recovery_conf:
376+
restore_command: cp /home/postgres/archived/%f %p
370377
371378
# some desired options for 'initdb'
372379
initdb: # Note: It needs to be a list (some options need values, others are switches)
373380
- encoding: UTF8
374381
- data-checksums
375-
376-
pg_hba: # Add following lines to pg_hba.conf after running 'initdb'
377-
- host replication replicator 127.0.0.1/32 trust
378-
- host replication replicator 0.0.0.0/0 md5
379-
- host all all 0.0.0.0/0 md5
380-
- host all all ::0/0 md5
381-
382-
# Some additional users which needs to be created after initializing new cluster
383-
users:
384-
admin:
385-
password: qaz123
386-
options:
387-
- createrole
388-
- createdb
389-
percona:
390-
password: qaz123
391-
options:
392-
- createrole
393-
- createdb
394-
382+
395383
postgresql:
396384
cluster_name: cluster_1
397385
listen: 0.0.0.0:5432
@@ -413,6 +401,12 @@ Run the following commands on all nodes. You can do this in parallel:
413401
basebackup:
414402
checkpoint: 'fast'
415403
404+
watchdog:
405+
mode: required # Allowed values: off, automatic, required
406+
device: /dev/watchdog
407+
safety_margin: 5
408+
409+
416410
tags:
417411
nofailover: false
418412
noloadbalance: false

0 commit comments

Comments
 (0)