ЛР 3: HAProxy + 2 реплики, общая идемпотентность, rolling update

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LOSYASH
2026-10-22 18:21:19 +03:00
co-authored by Claude Opus 5.5
parent 0ab3a341aa
commit a71c582195
54 changed files with 3192 additions and 40 deletions
+59
View File
@@ -0,0 +1,59 @@
{
"workload": "4 closed-loop writers, retry same key on failure, 4s before + 12s after stop",
"replicas": [
{
"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
},
{
"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
}
]
}