feat(lab3): HAProxy LB, stateless API replicas, X-Instance-Id, Idempotency-Key, Grade 5 Track 1
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"timestamp_utc": "2026-11-16T23:23:25Z",
|
||||
"base_url": "http://localhost:8080",
|
||||
"checks": {
|
||||
"infra_and_migrations": {
|
||||
"status": "PASS",
|
||||
"api_replicas": 2,
|
||||
"containers": [
|
||||
{
|
||||
"name": "lab3-api-1",
|
||||
"short_id": "c867ff33ee47",
|
||||
"nano_cpus": 1000000000,
|
||||
"memory": 268435456
|
||||
},
|
||||
{
|
||||
"name": "lab3-api-2",
|
||||
"short_id": "a8fb03f322c9",
|
||||
"nano_cpus": 1000000000,
|
||||
"memory": 268435456
|
||||
}
|
||||
],
|
||||
"applied_migrations": [
|
||||
"001_init.sql",
|
||||
"002_idempotency.sql"
|
||||
]
|
||||
},
|
||||
"stateless_sessions": {
|
||||
"status": "PASS",
|
||||
"observed_instances": [
|
||||
"a8fb03f322c9",
|
||||
"c867ff33ee47"
|
||||
]
|
||||
},
|
||||
"concurrent_idempotency": {
|
||||
"status": "PASS",
|
||||
"concurrent_requests": 20,
|
||||
"unique_message_ids": 1,
|
||||
"replicas_involved": [
|
||||
"a8fb03f322c9",
|
||||
"c867ff33ee47"
|
||||
],
|
||||
"canonical_json_replay": "201_same_id",
|
||||
"different_body_conflict": 409,
|
||||
"scope_isolation_verified": true
|
||||
},
|
||||
"sequential_failover": {
|
||||
"status": "PASS",
|
||||
"replica_1_failover": {
|
||||
"stopped_container": "lab3-api-1",
|
||||
"stopped_short_id": "c867ff33ee47",
|
||||
"stop_duration_s": 1.976,
|
||||
"total_requests": 1354,
|
||||
"successful_writes": 1354,
|
||||
"failed_requests": 0,
|
||||
"error_rate": 0.0,
|
||||
"rps": 135.4,
|
||||
"recovery_seconds_after_stop": 0.0,
|
||||
"serving_instances_after_failover": [
|
||||
"a8fb03f322c9"
|
||||
]
|
||||
},
|
||||
"replica_2_failover": {
|
||||
"stopped_container": "lab3-api-2",
|
||||
"stopped_short_id": "a8fb03f322c9",
|
||||
"stop_duration_s": 1.952,
|
||||
"total_requests": 1354,
|
||||
"successful_writes": 1354,
|
||||
"failed_requests": 0,
|
||||
"error_rate": 0.0,
|
||||
"rps": 135.4,
|
||||
"recovery_seconds_after_stop": 0.0,
|
||||
"serving_instances_after_failover": [
|
||||
"c867ff33ee47"
|
||||
]
|
||||
}
|
||||
},
|
||||
"rolling_update": {
|
||||
"status": "PASS",
|
||||
"old_replicas": [
|
||||
"c867ff33ee47",
|
||||
"a8fb03f322c9"
|
||||
],
|
||||
"new_replicas": [
|
||||
"6ab8d90bddf4",
|
||||
"ce8d6d71f25b"
|
||||
],
|
||||
"total_requests_during_rollout": 1476,
|
||||
"successful_writes": 1476,
|
||||
"failed_requests": 0,
|
||||
"error_rate": 0.0,
|
||||
"observed_serving_instances": [
|
||||
"6ab8d90bddf4",
|
||||
"a8fb03f322c9",
|
||||
"bad8d000caaf",
|
||||
"c867ff33ee47",
|
||||
"ce8d6d71f25b"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user