# 2026-11-05T14:27:09Z scale api 2 -> 4 -> 2, haproxy.cfg не меняется $ docker compose up -d --wait --scale api=4 api healthy: 8 mtusi-lab3-api-5 Up About a minute (healthy) mtusi-lab3-api-6 Up About a minute (healthy) mtusi-lab3-api-7 Up 9 seconds (healthy) mtusi-lab3-api-8 Up 9 seconds (healthy) $ LB stats: backend api api-1 UP 172.19.0.3:8080 api-2 UP 172.19.0.2:8080 api-3 UP 172.19.0.5:8080 api-4 UP 172.19.0.6:8080 api-5 MAINT (resolution) api-6 MAINT (resolution) api-7 MAINT (resolution) api-8 MAINT (resolution) BACKEND UP X-Instance-Id sequence: 8060819e8622-2573c9 27dfa4d0a786-99ebbc 94d5b20af90c-c34d8c 82960260fe7e-833cd4 8060819e8622-2573c9 27dfa4d0a786-99ebbc 94d5b20af90c-c34d8c 82960260fe7e-833cd4 8060819e8622-2573c9 27dfa4d0a786-99ebbc distinct replicas for one session without re-login: {'8060819e8622-2573c9': 3, '27dfa4d0a786-99ebbc': 3, '94d5b20af90c-c34d8c': 2, '82960260fe7e-833cd4': 2} $ docker compose up -d --wait --scale api=2 api stopped: 2 mtusi-lab3-api-5 Up About a minute (healthy) mtusi-lab3-api-6 Up About a minute (healthy)