distributed controller based on zookeeper