forked from mtusi2026/mtusi2026lab3
Save sanitized outputs from a stand started from a clean state: the clean clone run, smoke through the balancer, the stack view with the replica hostnames, ports, networks, limits and the balancer server states, the probe with two replicas behind one token and the eight way race on one key, a failover run for each replica with the container left exited and its graceful shutdown log, the hook negative cases and the balancer answer without replicas, the persistence run with StartedAt of every container before and after, schema, migration rerun, KDF prefix, ignore rules, own tests and the lab 2 stack fault tests through the balancer, plus the environment. The report covers the clean clone start, the architecture, the X-Instance-Id and idempotency decisions, the balancer settings, the role to service table, the mapping of .env.example to the real variables, one evidence row per level 3 criterion and the carried lab 2 minimum, and the failure table for level 3. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
31 lines
2.1 KiB
Plaintext
31 lines
2.1 KiB
Plaintext
date: 2026-10-28T08:47:27Z commit: 0796e29
|
|
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
|
|
302cfee8f673 running started=2026-10-28T08:47:14.781792917Z finished=2026-10-28T08:47:07.856233678Z
|
|
b582bd503bdd running started=2026-10-28T08:47:14.713654417Z finished=2026-10-28T08:47:07.971063344Z
|
|
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
|
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:18083"
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 123, "failed_attempts": 0, "first_recovery_seconds": 1.212}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
== after: api replicas
|
|
302cfee8f673 exited started=2026-10-28T08:47:14.781792917Z finished=2026-10-28T08:47:28.65076559Z
|
|
b582bd503bdd running started=2026-10-28T08:47:14.713654417Z finished=2026-10-28T08:47:07.971063344Z
|
|
== stopped replica: 302cfee8f673; last log lines of its process
|
|
{"event":"service.stopped","level":"info","ts":"2026-10-28T08:47:28.456077Z"}
|
|
{"event":"Application shutdown complete.","level":"info","ts":"2026-10-28T08:47:28.456276Z"}
|
|
{"event":"Finished server process [8]","level":"info","ts":"2026-10-28T08:47:28.456336Z"}
|
|
{"event":"Worker (pid:7) was sent SIGTERM!","level":"info","ts":"2026-10-28T08:47:28.459598Z"}
|
|
{"event":"Worker (pid:8) was sent SIGTERM!","level":"info","ts":"2026-10-28T08:47:28.459755Z"}
|
|
{"event":"Shutting down: Master","level":"info","ts":"2026-10-28T08:47:28.568492Z"}
|
|
$ scripts/restore.sh
|
|
Container mtusi2026lab3-api-2 Running
|
|
Container mtusi2026lab3-api-1 Starting
|
|
Container mtusi2026lab3-api-1 Started
|
|
Container mtusi2026lab3-api-2 Waiting
|
|
Container mtusi2026lab3-api-1 Waiting
|
|
Container mtusi2026lab3-api-2 Healthy
|
|
Container mtusi2026lab3-api-1 Healthy
|
|
== after restore
|
|
302cfee8f673 running started=2026-10-28T08:47:43.609172555Z finished=2026-10-28T08:47:28.65076559Z
|
|
b582bd503bdd running started=2026-10-28T08:47:14.713654417Z finished=2026-10-28T08:47:07.971063344Z
|