lab5: чистка evidence после ревью
Remove a duplicated raw LB log; keep detailed lab5 LB evidence under evidence/lab5 and restore the inherited lab3 evidence file.
This commit is contained in:
@@ -121,7 +121,7 @@ flowchart LR
|
|||||||
| Persistence lab2+ | `make test-persistence ACTION_SCRIPT=scripts/restart.sh` | PASS с broker/worker/relay в hook | `evidence/lab5/persistence.txt` |
|
| Persistence lab2+ | `make test-persistence ACTION_SCRIPT=scripts/restart.sh` | PASS с broker/worker/relay в hook | `evidence/lab5/persistence.txt` |
|
||||||
| Failover lab3+ | `make test-failover ACTION_SCRIPT=scripts/stop-one.sh` | 99 успешных записей, 0 ошибок, recovery 0.22 s | `evidence/lab5/failover.txt` |
|
| Failover lab3+ | `make test-failover ACTION_SCRIPT=scripts/stop-one.sh` | 99 успешных записей, 0 ошибок, recovery 0.22 s | `evidence/lab5/failover.txt` |
|
||||||
| Idempotency lab3+ | `make test-idempotency` | 1 accepted, 11 conflicts, stable replay | `evidence/lab5/idempotency.txt` |
|
| Idempotency lab3+ | `make test-idempotency` | 1 accepted, 11 conflicts, stable replay | `evidence/lab5/idempotency.txt` |
|
||||||
| LB исключает not-ready реплику | `make test-lb-readiness` | candidate 200→503, LB DOWN в пределах 30 s, 40 запросов без candidate | `evidence/lab5/lb-readiness.txt` |
|
| LB исключает not-ready реплику | `make test-lb-readiness` | candidate 200→503, LB DOWN в пределах 30 s, 40 запросов без candidate | `evidence/lab5/lb-readiness-detail.txt` |
|
||||||
| Трек 2: duplicate/stale/version | `python3 scripts/lab5_track2.py --reps 3` | 6/6 PASS: duplicate before effect, v1→v2, stale v1 no-op | `evidence/lab5/track2/` |
|
| Трек 2: duplicate/stale/version | `python3 scripts/lab5_track2.py --reps 3` | 6/6 PASS: duplicate before effect, v1→v2, stale v1 no-op | `evidence/lab5/track2/` |
|
||||||
|
|
||||||
### Параметры кодирования вариантов
|
### Параметры кодирования вариантов
|
||||||
|
|||||||
@@ -1,31 +1,31 @@
|
|||||||
# LB excludes a not-ready but reachable replica (lab5)
|
# LB excludes a not-ready but reachable replica (lab5)
|
||||||
# generated: 2026-10-30T19:20:42Z
|
# generated: 2026-10-30T20:18:32Z
|
||||||
# lb: haproxy:3.2-alpine
|
# lb: haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122
|
||||||
|
|
||||||
## 1. baseline: requests through LB by replica
|
## 1. baseline: requests through LB by replica
|
||||||
16 803d72737a58
|
22 23d07355bd77
|
||||||
24 d6715be2c42f
|
18 56bd7451c245
|
||||||
stats: api1=UP api2=UP api3=MAINT (resolution) api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
stats: api1=UP api2=MAINT (resolution) api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
|
|
||||||
## 2. start a temporary TCP proxy to postgres and a candidate replica behind the same network alias
|
## 2. start a temporary TCP proxy to postgres and a candidate replica behind the same network alias
|
||||||
instance-id: 515cb33ab1b9, readiness while its database is reachable: 200
|
instance-id: 42c73eb4c0a5, readiness while its database is reachable: 200
|
||||||
load balancer slot for the candidate: api3, stats: api1=UP api2=UP api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
load balancer slot for the candidate: api2, stats: api1=UP api2=UP 1/2 api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
|
|
||||||
## 3. cut the candidate's database access (stop only the TCP proxy)
|
## 3. cut the candidate's database access (stop only the TCP proxy)
|
||||||
candidate is still running: running, readiness: 503
|
candidate is still running: running, readiness: 503
|
||||||
waiting for the load balancer to mark api3 DOWN
|
waiting for the load balancer to mark api2 DOWN
|
||||||
api3 went DOWN 3s after its database was cut (check: inter 2s fall 2)
|
api2 went DOWN 1s after its database was cut (check: inter 2s fall 2)
|
||||||
stats after failure: api1=UP api2=UP api3=DOWN api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
stats after failure: api1=UP api2=DOWN api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
|
|
||||||
## 4. 40 requests through LB while the candidate is not ready
|
## 4. 40 requests through LB while the candidate is not ready
|
||||||
19 803d72737a58
|
22 23d07355bd77
|
||||||
21 d6715be2c42f
|
18 56bd7451c245
|
||||||
(the candidate must not appear above)
|
(the candidate must not appear above)
|
||||||
|
|
||||||
## 5. business writes through LB during the exclusion
|
## 5. business writes through LB during the exclusion
|
||||||
"failed_requests": 0,
|
"failed_requests": 0,
|
||||||
"error_ratio": 0.0,
|
"error_ratio": 0.0,
|
||||||
"successful_rps": 919.321,
|
"successful_rps": 816.58,
|
||||||
|
|
||||||
## 6. cleanup
|
## 6. cleanup
|
||||||
stats after cleanup: api1=UP api2=UP api3=MAINT (resolution) api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
stats after cleanup: api1=UP api2=MAINT (resolution) api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
@@ -1,34 +1,34 @@
|
|||||||
# lb readiness 2026-10-30T20:10:40Z
|
# lb readiness 2026-10-30T20:18:31Z
|
||||||
scripts/lb_readiness_check.sh
|
scripts/lb_readiness_check.sh
|
||||||
# LB excludes a not-ready but reachable replica (lab5)
|
# LB excludes a not-ready but reachable replica (lab5)
|
||||||
# generated: 2026-10-30T20:10:40Z
|
# generated: 2026-10-30T20:18:32Z
|
||||||
# lb: haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122
|
# lb: haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122
|
||||||
|
|
||||||
## 1. baseline: requests through LB by replica
|
## 1. baseline: requests through LB by replica
|
||||||
19 1c67613c89f2
|
22 23d07355bd77
|
||||||
21 ee96975adb44
|
18 56bd7451c245
|
||||||
stats: api1=UP api2=MAINT (resolution) api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
stats: api1=UP api2=MAINT (resolution) api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
|
|
||||||
## 2. start a temporary TCP proxy to postgres and a candidate replica behind the same network alias
|
## 2. start a temporary TCP proxy to postgres and a candidate replica behind the same network alias
|
||||||
instance-id: 6dff747ee488, readiness while its database is reachable: 200
|
instance-id: 42c73eb4c0a5, readiness while its database is reachable: 200
|
||||||
load balancer slot for the candidate: api2, stats: api1=UP api2=UP 1/2 api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
load balancer slot for the candidate: api2, stats: api1=UP api2=UP 1/2 api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
|
|
||||||
## 3. cut the candidate's database access (stop only the TCP proxy)
|
## 3. cut the candidate's database access (stop only the TCP proxy)
|
||||||
candidate is still running: running, readiness: 503
|
candidate is still running: running, readiness: 503
|
||||||
waiting for the load balancer to mark api2 DOWN
|
waiting for the load balancer to mark api2 DOWN
|
||||||
api2 went DOWN 0s after its database was cut (check: inter 2s fall 2)
|
api2 went DOWN 1s after its database was cut (check: inter 2s fall 2)
|
||||||
stats after failure: api1=UP api2=DOWN api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
stats after failure: api1=UP api2=DOWN api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
|
|
||||||
## 4. 40 requests through LB while the candidate is not ready
|
## 4. 40 requests through LB while the candidate is not ready
|
||||||
23 1c67613c89f2
|
22 23d07355bd77
|
||||||
17 ee96975adb44
|
18 56bd7451c245
|
||||||
(the candidate must not appear above)
|
(the candidate must not appear above)
|
||||||
|
|
||||||
## 5. business writes through LB during the exclusion
|
## 5. business writes through LB during the exclusion
|
||||||
"failed_requests": 0,
|
"failed_requests": 0,
|
||||||
"error_ratio": 0.0,
|
"error_ratio": 0.0,
|
||||||
"successful_rps": 746.262,
|
"successful_rps": 816.58,
|
||||||
|
|
||||||
## 6. cleanup
|
## 6. cleanup
|
||||||
stats after cleanup: api1=UP api2=MAINT (resolution) api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
stats after cleanup: api1=UP api2=MAINT (resolution) api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
lb_readiness_check.sh: evidence in evidence/lb-readiness.txt
|
lb_readiness_check.sh: evidence in evidence/lab5/lb-readiness-detail.txt
|
||||||
|
|||||||
+15
-15
@@ -1,31 +1,31 @@
|
|||||||
# LB excludes a not-ready but reachable replica (lab5)
|
# LB excludes a not-ready but reachable replica (lab3)
|
||||||
# generated: 2026-10-30T20:10:40Z
|
# generated: 2026-10-16T14:02:26Z
|
||||||
# lb: haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122
|
# lb: haproxy:3.2-alpine
|
||||||
|
|
||||||
## 1. baseline: requests through LB by replica
|
## 1. baseline: requests through LB by replica
|
||||||
19 1c67613c89f2
|
18 52861386fddb
|
||||||
21 ee96975adb44
|
22 8587b4251b72
|
||||||
stats: api1=UP api2=MAINT (resolution) api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
stats: api1=UP api2=UP api3=MAINT (resolution) api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
|
|
||||||
## 2. start a temporary TCP proxy to postgres and a candidate replica behind the same network alias
|
## 2. start a temporary TCP proxy to postgres and a candidate replica behind the same network alias
|
||||||
instance-id: 6dff747ee488, readiness while its database is reachable: 200
|
instance-id: 9e9e905440d3, readiness while its database is reachable: 200
|
||||||
load balancer slot for the candidate: api2, stats: api1=UP api2=UP 1/2 api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
load balancer slot for the candidate: api3, stats: api1=UP api2=UP api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
|
|
||||||
## 3. cut the candidate's database access (stop only the TCP proxy)
|
## 3. cut the candidate's database access (stop only the TCP proxy)
|
||||||
candidate is still running: running, readiness: 503
|
candidate is still running: running, readiness: 503
|
||||||
waiting for the load balancer to mark api2 DOWN
|
waiting for the load balancer to mark api3 DOWN
|
||||||
api2 went DOWN 0s after its database was cut (check: inter 2s fall 2)
|
api3 went DOWN 2s after its database was cut (check: inter 2s fall 2)
|
||||||
stats after failure: api1=UP api2=DOWN api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
stats after failure: api1=UP api2=UP api3=DOWN api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
|
|
||||||
## 4. 40 requests through LB while the candidate is not ready
|
## 4. 40 requests through LB while the candidate is not ready
|
||||||
23 1c67613c89f2
|
18 52861386fddb
|
||||||
17 ee96975adb44
|
22 8587b4251b72
|
||||||
(the candidate must not appear above)
|
(the candidate must not appear above)
|
||||||
|
|
||||||
## 5. business writes through LB during the exclusion
|
## 5. business writes through LB during the exclusion
|
||||||
"failed_requests": 0,
|
"failed_requests": 0,
|
||||||
"error_ratio": 0.0,
|
"error_ratio": 0.0,
|
||||||
"successful_rps": 746.262,
|
"successful_rps": 1163.529,
|
||||||
|
|
||||||
## 6. cleanup
|
## 6. cleanup
|
||||||
stats after cleanup: api1=UP api2=MAINT (resolution) api3=UP api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
stats after cleanup: api1=UP api2=UP api3=MAINT (resolution) api4=MAINT (resolution) api5=MAINT (resolution) api6=MAINT (resolution) api7=MAINT (resolution) api8=MAINT (resolution) BACKEND=UP
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ if [ -f .env ]; then
|
|||||||
set +a
|
set +a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OUT=${OUT:-evidence/lb-readiness.txt}
|
OUT=${OUT:-evidence/lab5/lb-readiness-detail.txt}
|
||||||
PROJECT=${COMPOSE_PROJECT_NAME:-mtusi-messenger-lab5}
|
PROJECT=${COMPOSE_PROJECT_NAME:-mtusi-messenger-lab5}
|
||||||
NET=${PROJECT}_default
|
NET=${PROJECT}_default
|
||||||
IMAGE=${IMAGE:-mtusi-messenger:lab5}
|
IMAGE=${IMAGE:-mtusi-messenger:lab5}
|
||||||
|
|||||||
Reference in New Issue
Block a user