Lab3: fair track-1 database reset, WAL metrics, rolling and clean-clone tooling
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user