Доработать инструменты экспериментов: чередовать повторы, останавливать лестницу на первой проваленной ступени, задавать maxconn и CPU базы в сериях, записывать замер скорости хоста и контроль шума, сократить комментарии

This commit is contained in:
2026-11-04 12:39:04 +03:00
parent ce47c138e4
commit baa5995938
24 changed files with 253 additions and 240 deletions
+3 -7
View File
@@ -1,11 +1,7 @@
#!/bin/sh
# Failover hook of `make test-failover` (tests/resilience.py): stops the one
# API replica whose X-Instance-Id is $TARGET_INSTANCE_ID and leaves it
# stopped. The stop is graceful: on SIGTERM the replica turns unready, keeps
# serving for its drain delay while HAProxy takes it out of rotation, then
# exits; `docker stop` returns once it has. Nothing else is touched, and an
# alias that does not name exactly one running replica stops nothing.
# Restore the replica with: docker compose start api
# Failover hook of `make test-failover`: gracefully stops the one running API
# replica whose X-Instance-Id is $TARGET_INSTANCE_ID, and nothing else.
# Restore it with: docker compose start api
set -eu
cd "$(dirname "$0")/.."