Implement possibility to work against ZooKeeper

This implementation is using the same interface (AbstractDCS) as Etcd
class. It means that there should be no problem to implement another
plugin to work agains Consul for example.
This commit is contained in:
Alexander Kukushkin
2015-07-07 12:45:14 +02:00
parent 7445590546
commit 43b12af3a7
8 changed files with 328 additions and 8 deletions
+10 -4
View File
@@ -1,12 +1,18 @@
loop_wait: 10
ttl: &ttl 30
loop_wait: &loop_wait 10
restapi:
listen: 127.0.0.1:8009
connect_address: 127.0.0.1:8009
listen: 127.0.0.1:8010
connect_address: 127.0.0.1:8010
etcd:
scope: batman
ttl: 30
ttl: *ttl
host: 127.0.0.1:4001
#discovery_srv: my-etcd.domain
#zookeeper:
# scope: batman
# session_timeout: *ttl
# reconnect_timeout: *loop_wait
# hosts: 127.0.0.1:2181
postgresql:
name: postgresql1
listen: 127.0.0.1:5433