add failover support by zookeeper