master (mistress) election using Zookeeper