File tree Expand file tree Collapse file tree 2 files changed +28
-40
lines changed Expand file tree Collapse file tree 2 files changed +28
-40
lines changed Original file line number Diff line number Diff line change @@ -352,31 +352,19 @@ Run the following commands on all nodes. You can do this in parallel:
352
352
archive_mode: "on"
353
353
archive_timeout: 600s
354
354
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
355
362
356
363
# some desired options for ' initdb'
357
364
initdb: # Note: It needs to be a list (some options need values, others are switches)
358
365
- encoding: UTF8
359
366
- 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
+
380
368
postgresql:
381
369
cluster_name: cluster_1
382
370
listen: 0.0.0.0:5432
@@ -398,6 +386,12 @@ Run the following commands on all nodes. You can do this in parallel:
398
386
basebackup:
399
387
checkpoint: ' fast'
400
388
389
+ watchdog:
390
+ mode: required # Allowed values: off, automatic, required
391
+ device: /dev/watchdog
392
+ safety_margin: 5
393
+
394
+
401
395
tags:
402
396
nofailover: false
403
397
noloadbalance: false
Original file line number Diff line number Diff line change @@ -367,31 +367,19 @@ Run the following commands on all nodes. You can do this in parallel:
367
367
archive_mode: " on"
368
368
archive_timeout: 600s
369
369
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
370
377
371
378
# some desired options for 'initdb'
372
379
initdb: # Note: It needs to be a list (some options need values, others are switches)
373
380
- encoding: UTF8
374
381
- 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
+
395
383
postgresql:
396
384
cluster_name: cluster_1
397
385
listen: 0.0.0.0:5432
@@ -413,6 +401,12 @@ Run the following commands on all nodes. You can do this in parallel:
413
401
basebackup:
414
402
checkpoint: 'fast'
415
403
404
+ watchdog:
405
+ mode: required # Allowed values: off, automatic, required
406
+ device: /dev/watchdog
407
+ safety_margin: 5
408
+
409
+
416
410
tags:
417
411
nofailover: false
418
412
noloadbalance: false
You can’t perform that action at this time.
0 commit comments