def __init__(self, exit_event): self.cw = cw.ControllerWorker() self.threads = CONF.health_manager.failover_threads self.executor = futures.ThreadPoolExecutor(max_workers=self.threads) self.amp_repo = repo.AmphoraRepository() self.amp_health_repo = repo.AmphoraHealthRepository() self.lb_repo = repo.LoadBalancerRepository() self.dead = exit_event
def __init__(self): self.amp_repo = repo.AmphoraRepository() self.spares_repo = repo.SparesPoolRepository() self.az_repo = repo.AvailabilityZoneRepository() if CONF.api_settings.default_provider_driver == constants.AMPHORAV2: self.cw = cw2.ControllerWorker() self.check_booting_amphora = True else: self.cw = cw1.ControllerWorker() self.check_booting_amphora = False
def __init__(self, exit_event): if CONF.api_settings.default_provider_driver == constants.AMPHORAV2: self.cw = cw2.ControllerWorker() else: self.cw = cw1.ControllerWorker() self.threads = CONF.health_manager.failover_threads self.executor = futures.ThreadPoolExecutor(max_workers=self.threads) self.amp_repo = repo.AmphoraRepository() self.amp_health_repo = repo.AmphoraHealthRepository() self.lb_repo = repo.LoadBalancerRepository() self.dead = exit_event
def __init__(self): self.threads = CONF.house_keeping.cert_rotate_threads if CONF.api_settings.default_provider_driver == constants.AMPHORAV2: self.cw = cw2.ControllerWorker() else: self.cw = cw1.ControllerWorker()
def __init__(self): self.amp_repo = repo.AmphoraRepository() self.spares_repo = repo.SparesPoolRepository() self.az_repo = repo.AvailabilityZoneRepository() self.cw = cw.ControllerWorker()
def __init__(self): self.threads = CONF.house_keeping.cert_rotate_threads self.cw = cw.ControllerWorker()