Доработать инструменты экспериментов: чередовать повторы, останавливать лестницу на первой проваленной ступени, задавать maxconn и CPU базы в сериях, записывать замер скорости хоста и контроль шума, сократить комментарии
This commit is contained in:
+3
-7
@@ -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")/.."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user