Beispiel #1
0
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    utils.setup_gmr(log_dir=cfg.CONF.log_dir)

    server = central.Service(threads=CONF['service:central'].threads)
    service.serve(server, workers=CONF['service:central'].workers)
    service.wait()
Beispiel #2
0
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    hookpoints.log_hook_setup()

    server = central.Service(threads=CONF['service:central'].threads)
    service.serve(server, workers=CONF['service:central'].workers)
    service.wait()
Beispiel #3
0
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    hookpoints.log_hook_setup()

    server = central_service.Service()
    heartbeat = heartbeat_emitter.get_heartbeat_emitter(server.service_name,
                                                        rpc_api=server)
    service.serve(server, workers=CONF['service:central'].workers)
    heartbeat.start()
    service.wait()
Beispiel #4
0
 def get_central_service(self):
     return central_service.Service()
Beispiel #5
0
def main():
    utils.read_config('designate', sys.argv)
    logging.setup('designate')
    launcher = service.launch(central_service.Service(),
                              CONF['service:central'].workers)
    launcher.wait()