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

    launcher = service.get_process_launcher()
    server = service.WSGIService('coriolis-api')
    launcher.launch_service(server, workers=server.get_workers_count())
    launcher.wait()
Example #2
0
def _setup_task_process(mp_log_q):
    # Setting up logging and cfg, needed since this is a new process
    cfg.CONF(sys.argv[1:], project='coriolis', version="1.0.0")
    utils.setup_logging()

    # Log events need to be handled in the parent process
    log_root = logging.getLogger(None).logger
    for handler in log_root.handlers:
        log_root.removeHandler(handler)
    log_root.addHandler(handlers.QueueHandler(mp_log_q))
Example #3
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()

    server = service.WSGIService('coriolis-api', worker_count=worker_count)
    launcher = service.service.launch(CONF,
                                      server,
                                      workers=server.get_workers_count())
    launcher.wait()
Example #4
0
def _setup_task_process(mp_log_q):
    # Setting up logging and cfg, needed since this is a new process
    cfg.CONF(sys.argv[1:], project='coriolis', version="1.0.0")
    utils.setup_logging()

    # Log events need to be handled in the parent process
    log_root = logging.getLogger(None).logger
    for handler in log_root.handlers:
        log_root.removeHandler(handler)
    log_root.addHandler(handlers.QueueHandler(mp_log_q))
Example #5
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()
Example #6
0
def main():
    CONF(sys.argv[1:], project='coriolis',
         version="1.0.0")
    utils.setup_logging()

    launcher = service.get_process_launcher()
    server = service.MessagingService(
        'coriolis_worker', [rpc_server.WorkerServerEndpoint()],
        rpc_server.VERSION)
    launcher.launch_service(server, workers=server.get_workers_count())
    launcher.wait()
Example #7
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()
Example #8
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()
Example #9
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()
Example #10
0
def _setup_task_process():
    # Setting up logging and cfg, needed since this is a new process
    utils.setup_logging()
    cfg.CONF(sys.argv[1:], project='coriolis', version="1.0.0")
Example #11
0
def main():
    CONF(sys.argv[1:], project='coriolis', version="1.0.0")
    utils.setup_logging()

    db_api.db_sync(db_api.get_engine())
Example #12
0
def main():
    CONF(sys.argv[1:], project='coriolis',
         version="1.0.0")
    utils.setup_logging()

    db_api.db_sync(db_api.get_engine())