level 4, changed to HAProxy
This commit is contained in:
@@ -4,10 +4,13 @@ CA_FILE ?=
|
||||
ACTION_SCRIPT ?=
|
||||
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
||||
|
||||
.PHONY: help check validate test load test-persistence test-failover test-idempotency
|
||||
APP_VERSION ?=
|
||||
|
||||
.PHONY: help check validate test load test-persistence test-failover test-idempotency failover-series rolling-update lb-status
|
||||
|
||||
help:
|
||||
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
|
||||
@echo "failover-series, rolling-update APP_VERSION=..., lb-status: level 4 experiments (Docker required)"
|
||||
|
||||
check:
|
||||
$(PYTHON) scripts/check_contract.py
|
||||
@@ -31,3 +34,15 @@ test-failover:
|
||||
|
||||
test-idempotency:
|
||||
$(PYTHON) scripts/check_idempotency.py --base-url "$(BASE_URL)"
|
||||
|
||||
# Level 4: stop each API replica in turn under load (restoring the previous one); RPS, errors, recovery.
|
||||
failover-series:
|
||||
$(PYTHON) scripts/failover_series.py --base-url "$(BASE_URL)" --output evidence/failover-series.json
|
||||
|
||||
# Level 4: one-at-a-time replacement under load. Usage: make rolling-update APP_VERSION=v3
|
||||
rolling-update:
|
||||
@test -n "$(APP_VERSION)" || (echo "Set APP_VERSION of the new build"; exit 2)
|
||||
APP_VERSION="$(APP_VERSION)" $(PYTHON) scripts/failover_series.py --mode action --action scripts/rolling-update.sh --base-url "$(BASE_URL)" --output evidence/rolling-update.json
|
||||
|
||||
lb-status:
|
||||
sh scripts/lb-status.sh
|
||||
|
||||
Reference in New Issue
Block a user