This commit is contained in:
2026-10-25 21:46:21 +03:00
parent 5300a1a1e0
commit a7d6487e2d
33 changed files with 5965 additions and 556 deletions
+13
View File
@@ -7,6 +7,8 @@ BASE_URL ?= http://localhost:8080
CA_FILE ?=
ACTION_SCRIPT ?=
GRADE4_OUTPUT ?= evidence/grade4/results.json
GRADE5_OUTPUT ?= evidence/grade5/results.json
READINESS_OUTPUT ?= evidence/readiness-routing.json
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
COMPOSE_CMD = $(COMPOSE) --env-file "$(ENV_FILE)"
@@ -27,8 +29,10 @@ COMPOSE_CMD = $(COMPOSE) --env-file "$(ENV_FILE)"
load \
test-persistence \
test-failover \
test-readiness-routing \
rolling-update \
grade4-experiment \
grade5-experiment \
compose-config \
compose-build \
compose-up \
@@ -51,8 +55,10 @@ help:
@echo "load: run synthetic writes against the LB entrypoint"
@echo "test-persistence: run persistence test with ACTION_SCRIPT"
@echo "test-failover: run replica failover test with ACTION_SCRIPT"
@echo "test-readiness-routing: isolate PostgreSQL from one API and verify active LB health checks"
@echo "rolling-update: replace API replicas one by one with surge capacity"
@echo "grade4-experiment: run failovers, idempotency and rolling update with evidence"
@echo "grade5-experiment: measure fixed-budget scaling, saturation and one improvement"
@echo "compose-config: validate resolved Compose configuration"
@echo "compose-build: build application images"
@echo "compose-up: start the stack"
@@ -114,6 +120,9 @@ test-failover:
@test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable stop-one hook"; exit 2)
$(PYTHON) tests/resilience.py --mode failover --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS)
test-readiness-routing:
$(PYTHON) scripts/test_readiness_routing.py --env-file "$(ENV_FILE)" --output "$(READINESS_OUTPUT)"
rolling-update:
ENV_FILE="$(ENV_FILE)" ./scripts/rolling-update.sh
@@ -121,6 +130,10 @@ grade4-experiment:
$(PYTHON) scripts/grade4_experiment.py --base-url "$(BASE_URL)" --env-file "$(ENV_FILE)" --output "$(GRADE4_OUTPUT)"
$(PYTHON) scripts/render_grade4.py "$(GRADE4_OUTPUT)"
grade5-experiment:
$(PYTHON) scripts/grade5_experiment.py --base-url "$(BASE_URL)" --env-file "$(ENV_FILE)" --output "$(GRADE5_OUTPUT)"
$(PYTHON) scripts/render_grade5.py "$(GRADE5_OUTPUT)"
compose-config:
@test -f "$(ENV_FILE)" || \
(echo "$(ENV_FILE) is missing; run: make init-env"; exit 2)