Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat /etc/patroni.yml
- scope: postgres
- namespace: /jira_1/
- name: jr-conf-app-01
- restapi:
- listen: 10.200.19.50:8008
- connect_address: 10.200.19.50:8008
- etcd:
- host: 10.200.19.50:2379
- bootstrap:
- dcs:
- ttl: 30
- loop_wait: 10
- retry_timeout: 10
- maximum_lag_on_failover: 1048576
- postgresql:
- use_pg_rewind: true
- initdb:
- - encoding: UTF8
- - data-checksums
- pg_hba:
- - host replication replicator 127.0.0.1/32 md5
- - host replication replicator 10.200.19.50/0 md5
- - host replication replicator 10.200.19.51/0 md5
- - host all all 0.0.0.0/0 md5
- # users:
- # admin:
- # password: admin
- # options:
- # - createrole
- # - createdb
- postgresql:
- listen: 10.200.19.50:5432
- connect_address: 10.200.19.50:5432
- data_dir: /data/patroni
- pgpass: /tmp/pgpass
- bin_dir: /usr/pgsql-9.6/bin
- authentication:
- replication:
- username: replicator
- password: rep-pass
- superuser:
- username: postgres
- password: '1234'
- parameters:
- unix_socket_directories: '.'
- tags:
- nofailover: false
- noloadbalance: false
- clonefrom: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement