Lines Matching refs:devserver
365 def __init__(self, devserver): argument
366 self._devserver = devserver
415 def get_devserver_load_wrapper(cls, devserver, timeout_sec, output): argument
423 load = cls.get_devserver_load(devserver, timeout_min=timeout_sec/60.0)
425 load['devserver'] = devserver
430 def get_devserver_load(cls, devserver, argument
441 call = cls._build_call(devserver, 'check_health')
443 def get_load(devserver=devserver): argument
448 return json.load(six.StringIO(get_load(devserver=devserver)))
500 def devserver_healthy(cls, devserver, argument
514 load = cls.get_devserver_load(devserver, timeout_min=timeout_min)
538 c.increment(fields={'dev_server': cls(devserver).resolved_hostname,
547 fields={'dev_server': cls(devserver).resolved_hostname})
701 devserver = devservers.pop(hash_index)
702 logging.debug('Check health for %s', devserver)
703 if ban_list and devserver in ban_list:
706 if cls.devserver_healthy(devserver):
707 logging.debug('Pick %s', devserver)
708 return cls(devserver)
780 devserver = cls.get_healthy_devserver(build, devservers,
783 if not devserver and can_retry:
786 devserver = cls.get_healthy_devserver(build, devservers,
790 if devserver:
791 return devserver
2051 for devserver in devservers:
2054 args=(devserver, TIMEOUT_GET_DEVSERVER_LOAD, output)))