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...")
|
logging.debug("Default site is not set. Selecting one...")
|
||||||
for site in Config.SITE_LIST:
|
for site in Config.SITE_LIST:
|
||||||
if site.name not in incraising_queue_at:
|
if site.name not in incraising_queue_at:
|
||||||
redis_client.set("DEFAULT:SCHEDULED", site)
|
ensure_running_pod_on_site(site.name) # blocking
|
||||||
logging.info(f"Default site set to {site}")
|
redis_client.set("DEFAULT:SCHEDULED", site.name)
|
||||||
|
logging.info(f"Default site set to {site.name}")
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
logging.debug("Not enough data points to decide on default site yet")
|
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/"
|
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"
|
DEBUG: "yes"
|
||||||
REDIS_URL: "redis://birb-scheduler-redis:6379/0"
|
REDIS_URL: "redis://birb-scheduler-redis:6379/0"
|
||||||
COLLECTOR_URL: "http://birb-latency-collector/report"
|
COLLECTOR_URL: "http://birb-latency-collector/report/"
|
||||||
---
|
---
|
||||||
kind: Role
|
kind: Role
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
Loading…
Reference in New Issue
Block a user