Files
mtusi2026lab3/evidence/node-failover-2026-11-03.md
T
2026-11-03 20:49:07 +03:00

34 lines
1.4 KiB
Markdown

# Swarm worker-node failover — 2026-11-03
Topology: one Swarm manager and two workers, implemented as three privileged
Docker-in-Docker daemons. Two API tasks used `max_replicas_per_node=1`. Nginx,
PostgreSQL and Redis remained on the live manager. Images were pulled by nodes
from the disposable local registry by digest.
Command:
```text
python student_tests/node_failover.py --base-url http://localhost:18080 \
--window 30 --output evidence/node-failover-2026-11-03.json
```
Observed result:
- Hard-stopped node: `hla-swarm-worker2` (the entire nested Docker daemon).
- Old API task: `sesmka0dxn5k` on `worker2`.
- Replacement API task: `pke5uf5okm69` on `worker1`.
- Other API task remained on manager.
- Instance IDs changed from `1726221ff80d` / `edb5532a721e` to
`1726221ff80d` / `81c7197f2bfe`.
- Successful reads: 165; successful writes: 166; failed attempts: 0.
- First successful operation after node-stop started: 1.796 s.
- Successful operations per second during the 30 s window: 11.033.
- The pre-failure confirmed message and every response-confirmed in-flight
message remained readable.
- The stopped worker rejoined in `Ready` state after the experiment.
Protected scope: loss of one worker carrying an API task while manager/state
remain alive. Not protected and not claimed: PostgreSQL node loss, manager
quorum loss, Nginx loss, local-volume loss, underlay loss, or physical host
loss. `database_node_failed` is explicitly `false` in the raw JSON.