Добавить две реплики API за HAProxy и проверку отказа одной из них.

Общие сессии и ключ идемпотентности позволяют продолжать чтение и запись, когда одна реплика остановлена.
This commit is contained in:
2026-11-06 17:31:40 +03:00
parent 4303783848
commit d065cffb4e
31 changed files with 980 additions and 109 deletions
+37
View File
@@ -0,0 +1,37 @@
{
"instances_before": [
"884d89d0d7f2",
"c785aa003e06"
],
"failover": [
{
"ok": 3678,
"fail": 45,
"after_ok": 2613,
"target_after_stop": 0,
"first_recovery_s": 0.002,
"hook_exit": 0,
"hook_seconds": 0.406,
"target": "884d89d0d7f2",
"successful_rps": 306.5
},
{
"ok": 3918,
"fail": 57,
"after_ok": 2889,
"target_after_stop": 0,
"first_recovery_s": 0.001,
"hook_exit": 0,
"hook_seconds": 0.431,
"target": "c785aa003e06",
"successful_rps": 326.5
}
],
"idempotency_race": {
"parallel_requests": 12,
"distinct_ids": 1,
"successes": 12,
"errors": [],
"history_copies": 1
}
}