File tree 2 files changed +28
-40
lines changed
2 files changed +28
-40
lines changed Original file line number Diff line number Diff line change @@ -357,31 +357,19 @@ Run the following commands on all nodes. You can do this in parallel:
357
357
archive_mode: "on"
358
358
archive_timeout: 600s
359
359
archive_command: "cp -f %p /home/postgres/archived/%f"
360
+ pg_hba:
361
+ - local all all peer
362
+ - host replication replicator 127.0.0.1/32 trust
363
+ - host replication replicator 192.0.0.0/8 scram-sha-256
364
+ - host all all 0.0.0.0/0 scram-sha-256
365
+ recovery_conf:
366
+ restore_command: cp /home/postgres/archived/%f %p
360
367
361
368
# some desired options for ' initdb'
362
369
initdb: # Note: It needs to be a list (some options need values, others are switches)
363
370
- encoding: UTF8
364
371
- data-checksums
365
-
366
- pg_hba: # Add following lines to pg_hba.conf after running ' initdb'
367
- - host replication replicator 127.0.0.1/32 trust
368
- - host replication replicator 0.0.0.0/0 md5
369
- - host all all 0.0.0.0/0 md5
370
- - host all all ::0/0 md5
371
-
372
- # Some additional users which needs to be created after initializing new cluster
373
- users:
374
- admin:
375
- password: qaz123
376
- options:
377
- - createrole
378
- - createdb
379
- percona:
380
- password: qaz123
381
- options:
382
- - createrole
383
- - createdb
384
-
372
+
385
373
postgresql:
386
374
cluster_name: cluster_1
387
375
listen: 0.0.0.0:5432
@@ -403,6 +391,12 @@ Run the following commands on all nodes. You can do this in parallel:
403
391
basebackup:
404
392
checkpoint: ' fast'
405
393
394
+ watchdog:
395
+ mode: required # Allowed values: off, automatic, required
396
+ device: /dev/watchdog
397
+ safety_margin: 5
398
+
399
+
406
400
tags:
407
401
nofailover: false
408
402
noloadbalance: false
Original file line number Diff line number Diff line change @@ -366,31 +366,19 @@ Run the following commands on all nodes. You can do this in parallel:
366
366
archive_mode: " on"
367
367
archive_timeout: 600s
368
368
archive_command: " cp -f %p /home/postgres/archived/%f"
369
+ pg_hba:
370
+ - local all all peer
371
+ - host replication replicator 127.0.0.1/32 trust
372
+ - host replication replicator 192.0.0.0/8 scram-sha-256
373
+ - host all all 0.0.0.0/0 scram-sha-256
374
+ recovery_conf:
375
+ restore_command: cp /home/postgres/archived/%f %p
369
376
370
377
# some desired options for 'initdb'
371
378
initdb: # Note: It needs to be a list (some options need values, others are switches)
372
379
- encoding: UTF8
373
380
- data-checksums
374
-
375
- pg_hba: # Add following lines to pg_hba.conf after running 'initdb'
376
- - host replication replicator 127.0.0.1/32 trust
377
- - host replication replicator 0.0.0.0/0 md5
378
- - host all all 0.0.0.0/0 md5
379
- - host all all ::0/0 md5
380
-
381
- # Some additional users which needs to be created after initializing new cluster
382
- users:
383
- admin:
384
- password: qaz123
385
- options:
386
- - createrole
387
- - createdb
388
- percona:
389
- password: qaz123
390
- options:
391
- - createrole
392
- - createdb
393
-
381
+
394
382
postgresql:
395
383
cluster_name: cluster_1
396
384
listen: 0.0.0.0:5432
@@ -412,6 +400,12 @@ Run the following commands on all nodes. You can do this in parallel:
412
400
basebackup:
413
401
checkpoint: 'fast'
414
402
403
+ watchdog:
404
+ mode: required # Allowed values: off, automatic, required
405
+ device: /dev/watchdog
406
+ safety_margin: 5
407
+
408
+
415
409
tags:
416
410
nofailover: false
417
411
noloadbalance: false
You can’t perform that action at this time.
0 commit comments