|
1 | | -scope: batman |
2 | | -#namespace: /service/ |
3 | | -name: postgresql0 |
| 1 | +scope: pgcluster |
| 2 | +namespace: /service/ |
| 3 | +name: win1 |
4 | 4 |
|
5 | 5 | restapi: |
6 | | - listen: 127.0.0.1:8008 |
7 | | - connect_address: 127.0.0.1:8008 |
8 | | -# certfile: /etc/ssl/certs/ssl-cert-snakeoil.pem |
9 | | -# keyfile: /etc/ssl/private/ssl-cert-snakeoil.key |
10 | | -# authentication: |
11 | | -# username: username |
12 | | -# password: password |
13 | | - |
14 | | -# ctl: |
15 | | -# insecure: false # Allow connections to SSL sites without certs |
16 | | -# certfile: /etc/ssl/certs/ssl-cert-snakeoil.pem |
17 | | -# cacert: /etc/ssl/certs/ssl-cacert-snakeoil.pem |
| 6 | + listen: 0.0.0.0:8008 |
| 7 | + connect_address: 192.168.178.88:8008 |
18 | 8 |
|
19 | 9 | etcd: |
20 | | - host: 127.0.0.1:2379 |
| 10 | + hosts: |
| 11 | + - 192.168.178.88:2379 |
| 12 | + - 192.168.178.89:2379 |
| 13 | + - 192.168.178.90:2379 |
21 | 14 |
|
22 | 15 | bootstrap: |
23 | | - # this section will be written into Etcd:/<namespace>/<scope>/config after initializing new cluster |
24 | | - # and all other cluster members will use it as a `global configuration` |
25 | 16 | dcs: |
26 | 17 | ttl: 30 |
27 | 18 | loop_wait: 10 |
28 | 19 | retry_timeout: 10 |
29 | | - maximum_lag_on_failover: 1048576 |
30 | | -# master_start_timeout: 300 |
31 | | -# synchronous_mode: false |
32 | | - #standby_cluster: |
33 | | - #host: 127.0.0.1 |
34 | | - #port: 1111 |
35 | | - #primary_slot_name: patroni |
| 20 | + maximum_lag_on_failover: 1048906 |
36 | 21 | postgresql: |
37 | 22 | use_pg_rewind: true |
38 | | -# use_slots: true |
| 23 | + use_slots: true |
39 | 24 | parameters: |
40 | | -# wal_level: hot_standby |
41 | | -# hot_standby: "on" |
42 | | -# wal_keep_segments: 8 |
43 | | -# max_wal_senders: 10 |
44 | | -# max_replication_slots: 10 |
45 | | -# wal_log_hints: "on" |
46 | | -# archive_mode: "on" |
47 | | -# archive_timeout: 1800s |
48 | | -# archive_command: mkdir -p ../wal_archive && test ! -f ../wal_archive/%f && cp %p ../wal_archive/%f |
49 | | -# recovery_conf: |
50 | | -# restore_command: cp ../wal_archive/%f %p |
51 | | - |
52 | | - # some desired options for 'initdb' |
53 | | - initdb: # Note: It needs to be a list (some options need values, others are switches) |
| 25 | + logging_collector: true |
| 26 | + log_directory: log |
| 27 | + log_filename: postgresql.log |
| 28 | + wal_keep_segments: 50 |
| 29 | + pg_hba: |
| 30 | + - host replication replicator 0.0.0.0/0 md5 |
| 31 | + - host all all 0.0.0.0/0 md5 |
| 32 | + |
| 33 | + initdb: |
54 | 34 | - encoding: UTF8 |
55 | 35 | - data-checksums |
56 | 36 |
|
57 | | - pg_hba: # Add following lines to pg_hba.conf after running 'initdb' |
58 | | - - host replication replicator 127.0.0.1/32 md5 |
59 | | - - host all all 0.0.0.0/0 md5 |
60 | | -# - hostssl all all 0.0.0.0/0 md5 |
61 | | - |
62 | | - # Additional script to be launched after initial cluster creation (will be passed the connection URL as parameter) |
63 | | -# post_init: /usr/local/bin/setup_cluster.sh |
64 | | - |
65 | | - # Some additional users users which needs to be created after initializing new cluster |
66 | | - users: |
67 | | - admin: |
68 | | - password: admin |
69 | | - options: |
70 | | - - createrole |
71 | | - - createdb |
72 | | - |
73 | 37 | postgresql: |
74 | | - listen: 127.0.0.1:5432 |
75 | | - connect_address: 127.0.0.1:5432 |
76 | | - data_dir: data/postgresql0 |
77 | | -# bin_dir: C:/bigsql/pg11/bin |
78 | | -# config_dir: |
79 | | - pgpass: data/pgpass0 |
| 38 | + listen: 0.0.0.0:5432 |
| 39 | + connect_address: 192.168.178.88:5432 |
| 40 | + data_dir: ../pgsql/data |
| 41 | + bin_dir: ../pgsql/bin |
80 | 42 | authentication: |
81 | 43 | replication: |
82 | 44 | username: replicator |
83 | | - password: rep-pass |
| 45 | + password: reptilefluid |
84 | 46 | superuser: |
85 | 47 | username: postgres |
86 | | - password: zalando |
87 | | - parameters: |
88 | | - unix_socket_directories: '.' |
89 | | - |
90 | | -#watchdog: |
91 | | -# mode: automatic # Allowed values: off, automatic, required |
92 | | -# device: /dev/watchdog |
93 | | -# safety_margin: 5 |
| 48 | + password: snakeoil |
94 | 49 |
|
95 | 50 | tags: |
96 | 51 | nofailover: false |
|
0 commit comments