Advertisement
Guest User

Untitled

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