- 2 API-реплики (api-1, api-2) с уникальным INSTANCE_ID - Nginx load balancer с health-check и failover - PostgreSQL источник истины, Valkey кэш сессий - Idempotency-Key в заголовке, replay возвращает исходное сообщение - X-Instance-Id в каждом ответе для идентификации реплики - /version и /info эндпоинты - Housekeeping-loop для очистки истёкших сессий и ключей - stop-one.sh/cmd для failover-теста, restart.sh/cmd для persistence - Исправлены импорты config/models/api/store/sessions - Добавлены миграции 004 (idempotency), 005 (indexes), 006 (message_id) - Отчёт с доказательствами критериев уровня 3 и 4 - Все тесты проходят: smoke, 26 student tests, failover, persistence, degradation
19 lines
420 B
Plaintext
19 lines
420 B
Plaintext
# Shell scripts and configs must stay LF so they run in Linux containers.
|
|
*.sh text eol=lf
|
|
*.conf text eol=lf
|
|
nginx.conf text eol=lf
|
|
Dockerfile text eol=lf
|
|
dockerignore text eol=lf
|
|
compose.yaml text eol=lf
|
|
compose.example.yaml text eol=lf
|
|
entrypoint.sh text eol=lf
|
|
|
|
# Python and text files are fine with platform-native line endings.
|
|
*.py text
|
|
*.md text
|
|
*.json text
|
|
*.txt text
|
|
*.sql text
|
|
.env.example text
|
|
Makefile text
|