File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -355,31 +355,19 @@ Run the following commands on all nodes. You can do this in parallel:
355355 archive_mode: "on"
356356 archive_timeout: 600s
357357 archive_command: "cp -f %p /home/postgres/archived/%f"
358+ pg_hba:
359+ - local all all peer
360+ - host replication replicator 127.0.0.1/32 trust
361+ - host replication replicator 192.0.0.0/8 scram-sha-256
362+ - host all all 0.0.0.0/0 scram-sha-256
363+ recovery_conf:
364+ restore_command: cp /home/postgres/archived/%f %p
358365
359366 # some desired options for ' initdb'
360367 initdb: # Note: It needs to be a list (some options need values, others are switches)
361368 - encoding: UTF8
362369 - data-checksums
363-
364- pg_hba: # Add following lines to pg_hba.conf after running ' initdb'
365- - host replication replicator 127.0.0.1/32 trust
366- - host replication replicator 0.0.0.0/0 md5
367- - host all all 0.0.0.0/0 md5
368- - host all all ::0/0 md5
369-
370- # Some additional users which needs to be created after initializing new cluster
371- users:
372- admin:
373- password: qaz123
374- options:
375- - createrole
376- - createdb
377- percona:
378- password: qaz123
379- options:
380- - createrole
381- - createdb
382-
370+
383371 postgresql:
384372 cluster_name: cluster_1
385373 listen: 0.0.0.0:5432
@@ -401,6 +389,12 @@ Run the following commands on all nodes. You can do this in parallel:
401389 basebackup:
402390 checkpoint: ' fast'
403391
392+ watchdog:
393+ mode: required # Allowed values: off, automatic, required
394+ device: /dev/watchdog
395+ safety_margin: 5
396+
397+
404398 tags:
405399 nofailover: false
406400 noloadbalance: false
Original file line number Diff line number Diff line change @@ -368,31 +368,19 @@ Run the following commands on all nodes. You can do this in parallel:
368368 archive_mode: " on"
369369 archive_timeout: 600s
370370 archive_command: " cp -f %p /home/postgres/archived/%f"
371+ pg_hba:
372+ - local all all peer
373+ - host replication replicator 127.0.0.1/32 trust
374+ - host replication replicator 192.0.0.0/8 scram-sha-256
375+ - host all all 0.0.0.0/0 scram-sha-256
376+ recovery_conf:
377+ restore_command: cp /home/postgres/archived/%f %p
371378
372379 # some desired options for 'initdb'
373380 initdb: # Note: It needs to be a list (some options need values, others are switches)
374381 - encoding: UTF8
375382 - data-checksums
376-
377- pg_hba: # Add following lines to pg_hba.conf after running 'initdb'
378- - host replication replicator 127.0.0.1/32 trust
379- - host replication replicator 0.0.0.0/0 md5
380- - host all all 0.0.0.0/0 md5
381- - host all all ::0/0 md5
382-
383- # Some additional users which needs to be created after initializing new cluster
384- users:
385- admin:
386- password: qaz123
387- options:
388- - createrole
389- - createdb
390- percona:
391- password: qaz123
392- options:
393- - createrole
394- - createdb
395-
383+
396384 postgresql:
397385 cluster_name: cluster_1
398386 listen: 0.0.0.0:5432
@@ -415,6 +403,12 @@ Run the following commands on all nodes. You can do this in parallel:
415403 basebackup:
416404 checkpoint: 'fast'
417405
406+ watchdog:
407+ mode: required # Allowed values: off, automatic, required
408+ device: /dev/watchdog
409+ safety_margin: 5
410+
411+
418412 tags:
419413 nofailover: false
420414 noloadbalance: false
You can’t perform that action at this time.
0 commit comments