# 2026-11-10 14:23:55 UTC | Rolling update lab5 -> lab5.1 под нагрузкой | exit 0 | 47.5s
$ python student-tests/rolling_update_load.py --base-url http://127.0.0.1:8080 --output evidence/rolling_update.json
replicas before: ['3a0e06f14a63', '4b1faad0399c']
2026-11-10T14:23:14.819Z rolling-update: start; replicas=2 old=['4b1faad0399c', '3a0e06f14a63']
2026-11-10T14:23:20.086Z rolling-update: images built in 5.3s (tag lab5.1)
2026-11-10T14:23:22.594Z rolling-update: migrations once in 2.5s: schema is up to date; nothing applied
2026-11-10T14:23:34.419Z rolling-update: step 1/2 new=cb14462a28f6 (messenger-api:lab5.1, ready+UP in 7.5s) replaced old=4b1faad0399c (graceful stop 4.1s)
2026-11-10T14:23:46.022Z rolling-update: step 2/2 new=cc4d20e47b36 (messenger-api:lab5.1, ready+UP in 7.0s) replaced old=3a0e06f14a63 (graceful stop 4.4s)
2026-11-10T14:23:46.260Z rolling-update: done in 31.8s; replicas now ['cb14462a28f6', 'cc4d20e47b36']
update 32.0s rc=0 | replicas ['3a0e06f14a63', '4b1faad0399c'] -> ['cb14462a28f6', 'cc4d20e47b36'] | errors during update 0 (-) | RPS before 238.0, during 231.1, after 253.7 | p95 during 93.0 ms | data ok=True
PASS: rolling update under load
# 2026-11-10 14:24:41 UTC | Rolling update обратно lab5.1 -> lab5 (откат) под нагрузкой | exit 0 | 45.9s
$ python student-tests/rolling_update_load.py --base-url http://127.0.0.1:8080 --output evidence/rolling_back.json
replicas before: ['cb14462a28f6', 'cc4d20e47b36']
2026-11-10T14:24:02.303Z rolling-update: start; replicas=2 old=['cb14462a28f6', 'cc4d20e47b36']
2026-11-10T14:24:05.202Z rolling-update: images built in 2.9s (tag lab5)
2026-11-10T14:24:07.607Z rolling-update: migrations once in 2.4s: schema is up to date; nothing applied
2026-11-10T14:24:19.412Z rolling-update: step 1/2 new=cec102b25e41 (messenger-api:lab5, ready+UP in 7.2s) replaced old=cb14462a28f6 (graceful stop 4.4s)
2026-11-10T14:24:31.138Z rolling-update: step 2/2 new=9adbb2f64abd (messenger-api:lab5, ready+UP in 7.1s) replaced old=cc4d20e47b36 (graceful stop 4.4s)
2026-11-10T14:24:31.579Z rolling-update: done in 29.5s; replicas now ['cec102b25e41', '9adbb2f64abd']
update 29.8s rc=0 | replicas ['cb14462a28f6', 'cc4d20e47b36'] -> ['9adbb2f64abd', 'cec102b25e41'] | errors during update 0 (-) | RPS before 287.6, during 271.5, after 229.3 | p95 during 78.0 ms | data ok=True
PASS: rolling update under load

# 2026-11-10 14:24:41 UTC | Реплики после обновлений | exit 0 | 0.3s
$ python scripts/ops.py ps
X-Instance-Id  container                    state     health     image                  lb     lb_status
cec102b25e41   messenger-lab5-api-5         running   healthy    messenger-api:lab5     api2   UP
9adbb2f64abd   messenger-lab5-api-6         running   healthy    messenger-api:lab5     api3   UP

