Lab3: fair track-1 database reset, WAL metrics, rolling and clean-clone tooling

This commit is contained in:
Ivan Melnikov
2026-12-02 19:03:24 +03:00
parent c19d092b63
commit 922a38b2cf
10 changed files with 870 additions and 238 deletions
+3 -1
View File
@@ -109,7 +109,9 @@ def set_profile(replicas, cpu, memory, image):
'API_IMAGE': image,
'GIT_REVISION': run(['git', 'rev-parse', 'HEAD']).stdout.strip(),
}
compose('up', '-d', '--no-deps', '--force-recreate', 'api', env_extra=env_extra)
for container in [c['container_id'] for c in api_containers()]:
run(['docker', 'rm', '-f', container], check=False)
compose('up', '-d', '--no-deps', 'api', env_extra=env_extra)
wait_all_running(replicas)
if not wait_http_ready(90):
raise RuntimeError('LB did not become ready after recreating API replicas')