Exemple #1
0
def initialize_kazoo_client_manager(zk_hosts):
    """ Initialize kazoo client manager. Note that all unit tests in kazoo_utils should
     use the initialization here."""
    kazoo_manager = KazooClientManager(zk_hosts,
                                       max_num_consecutive_failures=1,
                                       health_check_interval=0.0)
    kazoo_manager._client_callbacks = []