mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 22:12:15 +00:00
loadbalancer
This commit is contained in:
@@ -59,7 +59,8 @@ def check_or_fix(fix=False):
|
||||
working_hosts = set()
|
||||
|
||||
for area in AREAS:
|
||||
for host_ip, host_is_ok in run_area(c, area).items():
|
||||
results = run_area(c, area)
|
||||
for host_ip, host_is_ok in results.items():
|
||||
results_by_ip.setdefault(host_ip, True)
|
||||
results_by_ip[host_ip] &= host_is_ok
|
||||
|
||||
@@ -123,6 +124,10 @@ def check_host(domain, host_ip, area, version):
|
||||
url = f'https://{domain}/{area}/{version}/14/8529/5975.pbf'
|
||||
assert pycurl_status(url, domain, host_ip) == 200
|
||||
|
||||
# check style
|
||||
url = f'https://{domain}/styles/bright'
|
||||
assert pycurl_status(url, domain, host_ip) == 200
|
||||
|
||||
|
||||
def get_target_version(area):
|
||||
url = f'https://assets.openfreemap.com/versions/deployed_{area}.txt'
|
||||
|
||||
Reference in New Issue
Block a user