Advertisement
Guest User

db02:patroni.yml

a guest
Apr 7th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.27 KB | None | 0 0
  1. scope: mycluster
  2. name: db02
  3.  
  4. restapi:
  5.   listen: 127.0.0.1:8008
  6.   connect_address: 127.0.0.1:8008
  7.  
  8. etcd:
  9.   host: 127.0.0.1:2379
  10.  
  11. bootstrap:
  12.   dcs:
  13.     ttl: 30
  14.     loop_wait: 10
  15.     retry_timeout: 10
  16.     maximum_lag_on_failover: 1048576
  17.     postgresql:
  18.       use_pg_rewind: true
  19.       parameters:
  20.   initdb:
  21.   - encoding: UTF8
  22.   - data-checksums
  23.  
  24.   pg_hba:
  25.  - host replication replicator 127.0.0.1/32 md5
  26.   - host replication replicator 172.27.167.60/30 md5
  27.   - host all all 0.0.0.0/0 md5
  28.  
  29.   # Some additional users users which needs to be created after initializing new cluster
  30.   users:
  31.     admin:
  32.       password: admin
  33.       options:
  34.        - createrole
  35.         - createdb
  36.  
  37. postgresql:
  38.   listen: 172.27.167.62:5432
  39.   connect_address: 172.27.167.62:5432
  40.   data_dir: /var/lib/pgsql/9.5/data/mycluster
  41.   bin_dir: /usr/pgsql-9.5/bin
  42.   pgpass: /tmp/pgpass0
  43.   callbacks:
  44.     on_role_change: /usr/local/bin/patroni_configure_vip.sh
  45.   authentication:
  46.     replication:
  47.       username: replicator
  48.       password: *****
  49.     superuser:
  50.       username: postgres
  51.       password: *****
  52.   parameters:
  53.     unix_socket_directories: '.'
  54.     max_connections: 300
  55. tags:
  56.     nofailover: false
  57.     noloadbalance: false
  58.     clonefrom: false
  59.     nosync: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement