Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- udo cat /etc/patroni/patroni.yml
- scope: jira
- #namespace: /jira/
- name: node1.jira.dev
- restapi:
- listen: 10.200.19.50:8008
- connect_address: 10.200.19.50:8008
- etcd:
- hosts: 10.200.19.50:2379,10.200.19.51:2379,192.168.32.140:2379
- bootstrap:
- dcs:
- ttl: 30
- loop_wait: 10
- retry_timeout: 10
- maximum_lag_on_failover: 1024
- postgresql:
- parameters:
- use_pg_rewind: true
- max_connections: 200
- 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 replication replicator 192.168.32.140/0 md5
- # users:
- # admin:
- # password: admin
- # options:
- # - createrole
- # - createdb
- postgresql:
- listen: 0.0.0.0:5432
- connect_address: 10.200.19.50:5432
- data_dir: /etc/patroni/data
- 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
- nosync: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement