Esempio n. 1
0
def main():
    log.register_options(CONF)
    CONF(sys.argv[1:], project='delfin', version=version.version_string())
    log.setup(CONF, "delfin")
    utils.monkey_patch()

    task_server = service.Service.create(binary='delfin-task',
                                         coordination=True)
    service.serve(task_server)
    service.wait()
Esempio n. 2
0
def main():
    log.register_options(CONF)
    CONF(sys.argv[1:], project='delfin',
         version=version.version_string())
    log.setup(CONF, "delfin")
    utils.monkey_patch()

    # Launch alert manager service
    alert_manager = service.AlertService.create(binary='delfin-alert')
    service.serve(alert_manager)
    service.wait()
Esempio n. 3
0
def main():
    log.register_options(CONF)
    CONF(sys.argv[1:], project='delfin', version=version.version_string())
    log.setup(CONF, "delfin")
    utils.monkey_patch()

    task_server = service.TaskService.create(binary='delfin-task',
                                             coordination=True)
    leader_election = service.LeaderElectionService.create()
    metrics_task_server = service. \
        TaskService.create(binary='delfin-task',
                           topic=CONF.host,
                           manager='delfin.'
                                   'task_manager.'
                                   'metrics_manager.'
                                   'MetricsTaskManager',
                           coordination=True)

    service.serve(task_server)
    service.serve(leader_election)
    service.serve(metrics_task_server)

    service.wait()