Добавить балансировщик HAProxy, две реплики API и хуки отказа

This commit is contained in:
Pavel Grigorev
2026-11-12 19:45:14 +03:00
parent 291dfe65bf
commit 5263d3ec7a
9 changed files with 328 additions and 5 deletions
+4 -1
View File
@@ -4,7 +4,7 @@ CA_FILE ?=
ACTION_SCRIPT ?=
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
.PHONY: help check validate test load test-persistence test-failover
.PHONY: help check validate test load test-persistence test-failover student-test
help:
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
@@ -18,6 +18,9 @@ validate:
test:
$(PYTHON) tests/smoke.py --base-url "$(BASE_URL)" $(TLS_ARGS)
student-test:
BASE_URL="$(BASE_URL)" $(PYTHON) -m unittest discover -s student-tests -v
load:
$(PYTHON) tests/load.py --base-url "$(BASE_URL)" $(TLS_ARGS)