This commit is contained in:
parent
15ae49ded2
commit
d4e3032999
@ -47,8 +47,9 @@ def run(redis_client: Redis, site_url_map: Dict[str, str]):
|
||||
logging.debug("Default site is not set. Selecting one...")
|
||||
for site in Config.SITE_LIST:
|
||||
if site.name not in incraising_queue_at:
|
||||
redis_client.set("DEFAULT:SCHEDULED", site)
|
||||
logging.info(f"Default site set to {site}")
|
||||
ensure_running_pod_on_site(site.name) # blocking
|
||||
redis_client.set("DEFAULT:SCHEDULED", site.name)
|
||||
logging.info(f"Default site set to {site.name}")
|
||||
break
|
||||
else:
|
||||
logging.debug("Not enough data points to decide on default site yet")
|
||||
|
@ -35,7 +35,7 @@ data:
|
||||
SITES: "edge-1;http://192.168.111.100:30420/ edge-2;http://192.168.112.100:30420/ cloud;http://192.168.110.100:30420/"
|
||||
DEBUG: "yes"
|
||||
REDIS_URL: "redis://birb-scheduler-redis:6379/0"
|
||||
COLLECTOR_URL: "http://birb-latency-collector/report"
|
||||
COLLECTOR_URL: "http://birb-latency-collector/report/"
|
||||
---
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
|
Loading…
Reference in New Issue
Block a user