Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. cat /etc/patroni.yml
  2. scope: postgres
  3. namespace: /jira_1/
  4. name: jr-conf-app-01
  5.  
  6. restapi:
  7. listen: 10.200.19.50:8008
  8. connect_address: 10.200.19.50:8008
  9.  
  10. etcd:
  11. host: 10.200.19.50:2379
  12.  
  13. bootstrap:
  14. dcs:
  15. ttl: 30
  16. loop_wait: 10
  17. retry_timeout: 10
  18. maximum_lag_on_failover: 1048576
  19. postgresql:
  20. use_pg_rewind: true
  21.  
  22. initdb:
  23. - encoding: UTF8
  24. - data-checksums
  25.  
  26. pg_hba:
  27. - host replication replicator 127.0.0.1/32 md5
  28. - host replication replicator 10.200.19.50/0 md5
  29. - host replication replicator 10.200.19.51/0 md5
  30. - host all all 0.0.0.0/0 md5
  31.  
  32. # users:
  33. # admin:
  34. # password: admin
  35. # options:
  36. # - createrole
  37. # - createdb
  38.  
  39. postgresql:
  40. listen: 10.200.19.50:5432
  41. connect_address: 10.200.19.50:5432
  42. data_dir: /data/patroni
  43. pgpass: /tmp/pgpass
  44. bin_dir: /usr/pgsql-9.6/bin
  45. authentication:
  46. replication:
  47. username: replicator
  48. password: rep-pass
  49. superuser:
  50. username: postgres
  51. password: '1234'
  52. parameters:
  53. unix_socket_directories: '.'
  54.  
  55. tags:
  56. nofailover: false
  57. noloadbalance: false
  58. clonefrom: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement