Guest User

Untitled

a guest
Nov 4th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. scope: my-ha-cluster
  2. name: pg-2
  3.  
  4. restapi:
  5. listen: 0.0.0.0:8009
  6. connect_address: 127.0.0.1:8009
  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. use_slots: true
  20. parameters:
  21. wal_level: replica
  22. hot_standby: "on"
  23. wal_keep_segments: 8
  24. max_wal_senders: 5
  25. max_replication_slots: 5
  26. checkpoint_timeout: 30
  27.  
  28. initdb:
  29. - encoding: UTF8
  30.  
  31. pg_hba:
  32. - host all dba all md5
  33. - host replication repl all md5
  34.  
  35. users:
  36. dba:
  37. password: secret
  38. options:
  39. - createrole
  40. - createdb
  41. repl:
  42. password: secret
  43. options:
  44. - replication
  45.  
  46. postgresql:
  47. listen: 0.0.0.0:5433
  48. connect_address: 127.0.0.1:5433
  49. data_dir: /data/pg-2
  50. config_dir: /data/pg-2
  51. bin_dir: /usr/lib/postgresql/9.6/bin
  52. authentication:
  53. replication:
  54. username: repl
  55. password: secret
  56. superuser:
  57. username: dba
  58. password: secret
  59. parameters:
  60. unix_socket_directories: '/tmp'
  61. port: 5433
Add Comment
Please, Sign In to add comment