示例#1
0
def main():
    CONF(sys.argv[1:], project='coriolis', version="1.0.0")
    utils.setup_logging()

    server = service.MessagingService('coriolis_conductor',
                                      [rpc_server.ConductorServerEndpoint()],
                                      rpc_server.VERSION)
    launcher = service.service.launch(CONF,
                                      server,
                                      workers=server.get_workers_count())
    launcher.wait()
示例#2
0
def main():
    CONF(sys.argv[1:], project='coriolis', version="1.0.0")
    utils.setup_logging()

    server = service.MessagingService(constants.WORKER_MAIN_MESSAGING_TOPIC,
                                      [rpc_server.WorkerServerEndpoint()],
                                      rpc_server.VERSION)
    launcher = service.service.launch(CONF,
                                      server,
                                      workers=server.get_workers_count())
    launcher.wait()
示例#3
0
def main():
    CONF(sys.argv[1:], project='coriolis', version="1.0.0")
    utils.setup_logging()

    server = service.MessagingService('coriolis_replica_cron_worker',
                                      [rpc_server.ReplicaCronServerEndpoint()],
                                      rpc_server.VERSION,
                                      worker_count=1)
    launcher = service.service.launch(CONF,
                                      server,
                                      workers=server.get_workers_count())
    launcher.wait()
示例#4
0
def main():
    worker_count, args = service.get_worker_count_from_args(sys.argv)
    CONF(args[1:], project='coriolis', version="1.0.0")
    utils.setup_logging()
    service.check_locks_dir_empty()

    server = service.MessagingService(constants.CONDUCTOR_MAIN_MESSAGING_TOPIC,
                                      [rpc_server.ConductorServerEndpoint()],
                                      rpc_server.VERSION,
                                      worker_count=worker_count)
    launcher = service.service.launch(CONF,
                                      server,
                                      workers=server.get_workers_count())
    launcher.wait()