Files
mtusi2026lab3/student-tests/failures.compose.yml
T
ricoromaandClaude Opus 5.5 ab71c3b51e feat: put API replicas behind HAProxy
HAProxy 3.4 is the only published entry point; api runs as
API_REPLICAS replicas without ports, found through Docker DNS and
checked on /health/ready. Retries only on connection failure, LB errors
in the contract error format, resource limits and per-service secrets.
Adds scripts/stop-one.sh, LB-aware restart.sh, make replicas /
instances / lb_stats and replica tests driven by EXPECT_REPLICAS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 18:05:05 +03:00

16 lines
907 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Override стенда отказов make failure_checks (student-tests/run_failures.py):
# тот же docker-compose.yml под проектом <рабочий>-failures (имя рабочего
# проекта — из name в docker-compose.yml, сейчас mtusi-lab3), со своим
# volume и сетью. Порты Postgres и Valkey не публикуются: к ним ходит только
# fault_hook.py через docker compose exec. Сервисы api и haproxy не
# запускаются: контейнеры API создаёт оркестратор (docker compose run
# -p 127.0.0.1:...), у реплик api своих портов нет. Порт LB сброшен, чтобы
# случайный up не занял APP_OUT_PORT рабочего стенда.
services:
postgres:
ports: !reset []
valkey:
ports: !reset []
haproxy:
ports: !reset []