def coordinator_setup():
    url = cfg.CONF.coordination.url
    lock_timeout = cfg.CONF.coordination.lock_timeout
    proc_info = system_info.get_process_info()
    member_id = '%s_%d' % (proc_info['hostname'], proc_info['pid'])

    if url:
        coordinator = coordination.get_coordinator(url, member_id, lock_timeout=lock_timeout)
    else:
        # Use a no-op backend
        # Note: We don't use tooz to obtain a reference since for this to work we would need to
        # register a plugin inside setup.py entry_point and use python setup.py develop for tests
        # to work
        coordinator = NoOpDriver()

    coordinator.start()
    return coordinator
Initializes the file-like object.
dataset/ETHPy150Open StackStorm/st2/st2common/st2common/services/coordination.py/coordinator_setup--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/file_io/cpio_file_io.py/CPIOFile.__init__