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()
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()
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()
def get_central_service(self): return central_service.Service()
def main(): utils.read_config('designate', sys.argv) logging.setup('designate') launcher = service.launch(central_service.Service(), CONF['service:central'].workers) launcher.wait()