﻿# rolling update 2026-11-07T18:12:17.4627477+03:00: APP_VERSION=v3 (image prebuilt), python scripts/failover_series.py --mode action --action scripts/rolling-update.cmd
running scripts/rolling-update.cmd under load...
{"total": {"seconds": 67.8, "rps_ok": 160.0, "writes_ok": 5423, "reads_ok": 5423, "errors": 0, "p95_ms": 62.6, "instances": {"1b755b53e9fa": 2385, "e3303afc01b2": 3389, "3cfcdcac70c7": 3086, "13c61b35afd7": 1986}}, "integrity": {"confirmed_writes": 5423, "stored_messages": 5423, "duplicates": 0, "missing_confirmed": 0}}
PASS: action, 5423 confirmed writes, no duplicates, nothing lost
## rolling-update.sh output and metrics
18:11:19 rolling 2 replica(s) to messenger-lab3-app:v3
18:11:26 migrations applied once
18:11:37 new replica(s) UP in LB: 3cfcdcac70c7 ; stopping old 1b755b53e9fa
18:11:43 old 1b755b53e9fa drained and removed
18:11:54 new replica(s) UP in LB: 13c61b35afd7 3cfcdcac70c7 ; stopping old e3303afc01b2
18:12:00 old e3303afc01b2 drained and removed
messenger-lab3-api-3 messenger-lab3-app:v3 Up 32 seconds (healthy)
messenger-lab3-api-4 messenger-lab3-app:v3 Up 15 seconds (healthy)
18:12:01 done; set APP_VERSION=v3 in .env to keep this version on the next compose up
action_seconds 42.67 max_gap 0.073
versions before {'v2': 1833} during {'v2': 3941, 'v3': 2279} after {'v3': 2787}
baseline {'seconds': 10.1, 'rps_ok': 181.4, 'writes_ok': 917, 'reads_ok': 916, 'errors': 0, 'p95_ms': 53.4, 'instances': {'1b755b53e9fa': 915, 'e3303afc01b2': 918}}
during {'seconds': 42.67, 'rps_ok': 145.8, 'writes_ok': 3110, 'reads_ok': 3110, 'errors': 0, 'p95_ms': 68.3, 'instances': {'e3303afc01b2': 2471, '1b755b53e9fa': 1470, '3cfcdcac70c7': 1689, '13c61b35afd7': 590}}
after {'seconds': 15.0, 'rps_ok': 185.8, 'writes_ok': 1394, 'reads_ok': 1393, 'errors': 0, 'p95_ms': 54.4, 'instances': {'3cfcdcac70c7': 1394, '13c61b35afd7': 1393}}
