forked from mtusi2026/mtusi2026lab3
ЛР 3: HAProxy + 2 реплики, общая идемпотентность, rolling update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0ab3a341aa
commit
a71c582195
@@ -0,0 +1,71 @@
|
||||
ok - at least 2 API replicas running (2)
|
||||
== реплика api-a ==
|
||||
ok - LB serves api-a before the test
|
||||
{
|
||||
"stopped_instance": "api-a",
|
||||
"stop_command_seconds": 0.05,
|
||||
"before": {
|
||||
"successful": 1539,
|
||||
"errors": 0,
|
||||
"successful_rps": 384.4
|
||||
},
|
||||
"first_10s_after_stop": {
|
||||
"successful": 3427,
|
||||
"errors": 3,
|
||||
"successful_rps": 342.7
|
||||
},
|
||||
"first_success_after_stop_s": 0.001,
|
||||
"max_gap_without_success_after_stop_s": 0.068,
|
||||
"stopped_instance_served_after_3s": 0,
|
||||
"instances_after_stop": [
|
||||
"api-b"
|
||||
],
|
||||
"history_messages": 5659,
|
||||
"confirmed": 5659,
|
||||
"lost_or_changed": 0,
|
||||
"duplicate_texts": 0,
|
||||
"retries_with_same_key": 3,
|
||||
"rejoin_seconds": 2.59,
|
||||
"rejoin_including_start_s": 2.6
|
||||
}
|
||||
ok - writes resumed within 10 s after stopping api-a
|
||||
ok - stopped api-a not served after detection
|
||||
ok - confirmed messages preserved
|
||||
ok - no duplicates despite retries with the same key
|
||||
ok - api-a rejoined the LB after restart
|
||||
== реплика api-b ==
|
||||
ok - LB serves api-b before the test
|
||||
{
|
||||
"stopped_instance": "api-b",
|
||||
"stop_command_seconds": 0.05,
|
||||
"before": {
|
||||
"successful": 1518,
|
||||
"errors": 0,
|
||||
"successful_rps": 379.2
|
||||
},
|
||||
"first_10s_after_stop": {
|
||||
"successful": 3256,
|
||||
"errors": 3,
|
||||
"successful_rps": 325.6
|
||||
},
|
||||
"first_success_after_stop_s": 0.001,
|
||||
"max_gap_without_success_after_stop_s": 0.052,
|
||||
"stopped_instance_served_after_3s": 0,
|
||||
"instances_after_stop": [
|
||||
"api-a"
|
||||
],
|
||||
"history_messages": 5534,
|
||||
"confirmed": 5534,
|
||||
"lost_or_changed": 0,
|
||||
"duplicate_texts": 0,
|
||||
"retries_with_same_key": 3,
|
||||
"rejoin_seconds": 2.09,
|
||||
"rejoin_including_start_s": 2.09
|
||||
}
|
||||
ok - writes resumed within 10 s after stopping api-b
|
||||
ok - stopped api-b not served after detection
|
||||
ok - confirmed messages preserved
|
||||
ok - no duplicates despite retries with the same key
|
||||
ok - api-b rejoined the LB after restart
|
||||
|
||||
13 passed, 0 failed
|
||||
Reference in New Issue
Block a user