def main(): utils.read_config('designate', sys.argv) logging.setup('designate') server = sink_service.Service() service.serve(server, workers=CONF['service:sink'].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup('designate') server = mdns_service.Service.create(binary='designate-mdns') service.serve(server, workers=CONF['service:mdns'].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') gmr.TextGuruMeditation.setup_autorun(version) # NOTE(timsim): This is to ensure people don't start the wrong # services when the worker model is enabled. if cfg.CONF['service:worker'].enabled: LOG.error('You have designate-worker enabled, starting ' 'designate-pool-manager is incompatible with ' 'designate-worker. You need to start ' 'designate-worker instead.') sys.exit(1) debtcollector.deprecate('designate-pool-manager is deprecated in favor of ' 'designate-worker', version='newton', removal_version='rocky') server = pool_manager_service.Service( threads=CONF['service:pool_manager'].threads ) hookpoints.log_hook_setup() service.serve(server, workers=CONF['service:pool_manager'].workers) server.heartbeat_emitter.start() service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') gmr.TextGuruMeditation.setup_autorun(version) # NOTE(timsim): This is to ensure people don't start the wrong # services when the worker model is enabled. if cfg.CONF['service:worker'].enabled: LOG.error('You have designate-worker enabled, starting ' 'designate-zone-manager is incompatible with ' 'designate-worker. You need to start ' 'designate-producer instead.') sys.exit(1) debtcollector.deprecate('designate-zone-manager Is deprecated in ' 'favor of the designate-producer', version='newton', removal_version='rocky') LOG.warning('Starting designate-producer under the zone-manager name') server = producer_service.Service( threads=CONF['service:zone_manager'].threads) service.serve(server, workers=CONF['service:zone_manager'].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') gmr.TextGuruMeditation.setup_autorun(version) # NOTE(timsim): This is to ensure people don't start the wrong # services when the worker model is enabled. if CONF['service:worker'].enabled: LOG.error('You have designate-worker enabled, starting ' 'designate-zone-manager is incompatible with ' 'designate-worker. You need to start ' 'designate-producer instead.') sys.exit(1) debtcollector.deprecate( 'designate-zone-manager Is deprecated in ' 'favor of the designate-producer', version='newton', removal_version='rocky') LOG.warning('Starting designate-producer under the zone-manager name') server = producer_service.Service( threads=CONF['service:zone_manager'].threads) service.serve(server, workers=CONF['service:zone_manager'].workers) server.heartbeat_emitter.start() service.wait()
def main(): utils.read_config("designate", sys.argv) logging.setup("designate") server = mdns_service.Service.create(binary="designate-mdns") service.serve(server, workers=CONF["service:mdns"].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') gmr.TextGuruMeditation.setup_autorun(version) # NOTE(timsim): This is to ensure people don't start the wrong # services when the worker model is enabled. if cfg.CONF['service:worker'].enabled: LOG.error( _LE('You have designate-worker enabled, starting ' 'designate-pool-manager is incompatible with ' 'designate-worker. You need to start ' 'designate-worker instead.')) sys.exit(1) LOG.warning( _LW('designate-pool-manager is DEPRECATED in favor of ' 'designate-worker and will be removed during the Ocata ' 'cycle')) server = pool_manager_service.Service( threads=CONF['service:pool_manager'].threads) hookpoints.log_hook_setup() service.serve(server, workers=CONF['service:pool_manager'].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') gmr.TextGuruMeditation.setup_autorun(version) # NOTE(timsim): This is to ensure people don't start the wrong # services when the worker model is enabled. if cfg.CONF['service:worker'].enabled: LOG.error('You have designate-worker enabled, starting ' 'designate-pool-manager is incompatible with ' 'designate-worker. You need to start ' 'designate-worker instead.') sys.exit(1) debtcollector.deprecate('designate-pool-manager is deprecated in favor of ' 'designate-worker', version='newton', removal_version='rocky') server = pool_manager_service.Service( threads=CONF['service:pool_manager'].threads ) hookpoints.log_hook_setup() service.serve(server, workers=CONF['service:pool_manager'].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') utils.setup_gmr(log_dir=cfg.CONF.log_dir) server = agent_service.Service(threads=CONF['service:agent'].threads) service.serve(server, workers=CONF['service:agent'].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup('designate') server = central.Service.create(binary='designate-central', service_name='central') service.serve(server, workers=CONF['service:central'].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup('designate') server = agent_service.Service.create( binary='designate-agent') service.serve(server, workers=CONF['service:agent'].workers) service.wait()
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') utils.setup_gmr(log_dir=cfg.CONF.log_dir) server = mdns_service.Service() service.serve(server, workers=CONF['service:mdns'].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup('designate') server = pool_manager_service.Service.create( binary='designate-pool-manager') service.serve(server, workers=CONF['service:pool_manager'].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') gmr.TextGuruMeditation.setup_autorun(version) server = zone_manager_service.Service( threads=CONF['service:zone_manager'].threads) service.serve(server, workers=CONF['service:zone_manager'].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') utils.setup_gmr(log_dir=cfg.CONF.log_dir) hookpoints.log_hook_setup() server = sink_service.Service(threads=CONF['service:sink'].threads) service.serve(server, workers=CONF['service:sink'].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') utils.setup_gmr(log_dir=cfg.CONF.log_dir) 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 = mdns_service.Service(threads=CONF['service:mdns'].threads) service.serve(server, workers=CONF['service:mdns'].workers) server.heartbeat_emitter.start() service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') gmr.TextGuruMeditation.setup_autorun(version) hookpoints.log_hook_setup() server = sink_service.Service() heartbeat = heartbeat_emitter.get_heartbeat_emitter(server.service_name) service.serve(server, workers=CONF['service:sink'].workers) heartbeat.start() service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') gmr.TextGuruMeditation.setup_autorun(version) hookpoints.log_hook_setup() server = worker_service.Service() heartbeat = service.Heartbeat(server.service_name, server.tg) service.serve(server, workers=CONF['service:worker'].workers) heartbeat.start() service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') gmr.TextGuruMeditation.setup_autorun(version) # NOTE(timsim): This is to ensure people don't start the wrong # services when the worker model is enabled. if not cfg.CONF['service:worker'].enabled: LOG.error('You do not have designate-worker enabled, starting ' 'designate-producer is not allowed. ' 'You need to start designate-zone-manager instead.') sys.exit(1) hookpoints.log_hook_setup() server = producer_service.Service(threads=CONF['service:producer'].threads) service.serve(server, workers=CONF['service:producer'].workers) service.wait()
def main(): utils.read_config('designate', sys.argv) logging.setup(CONF, 'designate') gmr.TextGuruMeditation.setup_autorun(version) # NOTE(timsim): This is to ensure people don't start the wrong # services when the worker model is enabled. if cfg.CONF['service:worker'].enabled: LOG.error( _LE('You have designate-worker enabled, starting ' 'designate-zone-manager is incompatible with ' 'designate-worker. You need to start ' 'designate-producer instead.')) sys.exit(1) LOG.warning( _LW('designate-zone-manager is DEPRECATED in favor of ' 'designate-producer, starting designate-producer ' 'under the zone-manager name')) server = producer_service.Service( threads=CONF['service:zone_manager'].threads) service.serve(server, workers=CONF['service:zone_manager'].workers) service.wait()