Lines Matching refs:devserver
445 def __init__(self, devserver): argument
446 self._devserver = devserver
495 def get_devserver_load_wrapper(cls, devserver, timeout_sec, output): argument
503 load = cls.get_devserver_load(devserver, timeout_min=timeout_sec/60.0)
505 load['devserver'] = devserver
510 def get_devserver_load(cls, devserver, argument
521 call = cls._build_call(devserver, 'check_health')
523 def get_load(devserver=devserver): argument
528 return json.load(cStringIO.StringIO(get_load(devserver=devserver)))
580 def devserver_healthy(cls, devserver, argument
594 load = cls.get_devserver_load(devserver, timeout_min=timeout_min)
618 c.increment(fields={'dev_server': cls(devserver).resolved_hostname,
627 fields={'dev_server': cls(devserver).resolved_hostname})
784 devserver = devservers.pop(hash_index)
785 logging.debug('Check health for %s', devserver)
786 if ban_list and devserver in ban_list:
789 if cls.devserver_healthy(devserver):
790 logging.debug('Pick %s', devserver)
791 return cls(devserver)
863 devserver = cls.get_healthy_devserver(build, devservers,
866 if not devserver and can_retry:
869 devserver = cls.get_healthy_devserver(build, devservers,
873 if devserver:
874 return devserver
2836 for devserver in devservers:
2839 args=(devserver, TIMEOUT_GET_DEVSERVER_LOAD, output)))