Provide an example of using multiple etcd endpoints in yaml files (#1289)

This commit is contained in:
Igor Yanchenko
2019-11-21 13:29:05 +01:00
committed by Alexander Kukushkin
parent 183adb7848
commit cd96a10dd2
3 changed files with 33 additions and 0 deletions
+11
View File
@@ -17,7 +17,18 @@ restapi:
# cacert: /etc/ssl/certs/ssl-cacert-snakeoil.pem
etcd:
#Provide host to do the initial discovery of the cluster topology:
host: 127.0.0.1:2379
#Or use "hosts" to provide multiple endpoints
#Could be a comma separated string:
#hosts: host1:port1,host2:port2
#or an actual yaml list:
#hosts:
#- host1:port1
#- host2:port2
#Once discovery is complete Patroni will use the list of advertised clientURLs
#It is possible to change this behavior through by setting:
#use_proxies: true
bootstrap:
# this section will be written into Etcd:/<namespace>/<scope>/config after initializing new cluster