Выполнение 3 лабораторной работы

This commit is contained in:
2026-11-06 20:26:11 +03:00
parent 0ab3a341aa
commit 87f2a65448
105 changed files with 8359 additions and 25 deletions
+17
View File
@@ -0,0 +1,17 @@
## failover #1: контейнеры до
messenger-lab3-api-12 Up 29 seconds (healthy)
messenger-lab3-api-9 Up 30 seconds (healthy)
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 125, "failed_attempts": 0, "first_recovery_seconds": 3.691}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
## контейнеры после (остановленная реплика должна быть Exited)
messenger-lab3-api-12 Up 49 seconds (healthy)
messenger-lab3-api-9 Exited (0) 12 seconds ago
Container messenger-lab3-api-12 Running
Container messenger-lab3-api-9 Starting
Container messenger-lab3-api-9 Started
Container messenger-lab3-api-9 Waiting
Container messenger-lab3-api-12 Waiting
Container messenger-lab3-api-9 Healthy
Container messenger-lab3-api-12 Healthy
LB sees 2/2 api replicas UP
+17
View File
@@ -0,0 +1,17 @@
## failover #2: контейнеры до
messenger-lab3-api-12 Up 52 seconds (healthy)
messenger-lab3-api-9 Up 3 seconds (healthy)
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 136, "failed_attempts": 0, "first_recovery_seconds": 3.687}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
## контейнеры после (остановленная реплика должна быть Exited)
messenger-lab3-api-12 Up About a minute (healthy)
messenger-lab3-api-9 Exited (0) 11 seconds ago
Container messenger-lab3-api-12 Running
Container messenger-lab3-api-9 Starting
Container messenger-lab3-api-9 Started
Container messenger-lab3-api-9 Waiting
Container messenger-lab3-api-12 Waiting
Container messenger-lab3-api-9 Healthy
Container messenger-lab3-api-12 Healthy
LB sees 2/2 api replicas UP
+14
View File
@@ -0,0 +1,14 @@
{
"rounds": 20,
"parallel_requests_per_round": 40,
"requests_total": 840,
"messages_in_history": 21,
"messages_expected": 21,
"replicas_that_served_requests": 2,
"requests_per_replica": {
"13b0fc8945bc": 400,
"65e3ad44afc9": 400
},
"result": "PASS",
"failures": []
}
+15
View File
@@ -0,0 +1,15 @@
## persistence: старт контейнеров ДО
/messenger-lab3-api-12 65e3ad44afc9 started=2026-11-06T16:56:21.3113159Z
/messenger-lab3-api-9 13b0fc8945bc started=2026-11-06T16:57:34.953569522Z
/messenger-lab3-cache-1 e014a8d18926 started=2026-11-06T16:56:12.606839975Z
/messenger-lab3-db-1 a902ccd96269 started=2026-11-06T16:56:12.448360493Z
/messenger-lab3-lb-1 d99ad9b80ef3 started=2026-11-06T16:56:24.157711719Z
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
## старт контейнеров ПОСЛЕ (время старта db/cache/api/lb должно измениться; volume pgdata прежний)
/messenger-lab3-api-12 65e3ad44afc9 started=2026-11-06T16:57:56.21787969Z
/messenger-lab3-api-9 13b0fc8945bc started=2026-11-06T16:57:55.931156961Z
/messenger-lab3-cache-1 e014a8d18926 started=2026-11-06T16:57:47.861880861Z
/messenger-lab3-db-1 a902ccd96269 started=2026-11-06T16:57:47.558274049Z
/messenger-lab3-lb-1 d99ad9b80ef3 started=2026-11-06T16:57:59.030347367Z
messenger-lab3_pgdata
+1
View File
@@ -0,0 +1 @@
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
+26
View File
@@ -0,0 +1,26 @@
# 2026-11-06T16:56:37Z commit=0ab3a34
## docker compose ps (публикуется только lb; у api порт только внутри сети)
NAME SERVICE STATUS PORTS
messenger-lab3-api-12 api Up 16 seconds (healthy) 8080/tcp
messenger-lab3-api-9 api Up 16 seconds (healthy) 8080/tcp
messenger-lab3-cache-1 cache Up 24 seconds (healthy) 6379/tcp
messenger-lab3-db-1 db Up 25 seconds (healthy) 5432/tcp
messenger-lab3-lb-1 lb Up 13 seconds (healthy) 127.0.0.1:8404->8404/tcp, 0.0.0.0:8081->8080/tcp, [::]:8081->8080/tcp
## лимиты ресурсов (NanoCpus / Memory) и образы
/messenger-lab3-api-12 nanocpus=1000000000 mem_bytes=536870912 image=messenger-api:lab3
/messenger-lab3-api-9 nanocpus=1000000000 mem_bytes=536870912 image=messenger-api:lab3
/messenger-lab3-cache-1 nanocpus=500000000 mem_bytes=134217728 image=valkey/valkey:8.1@sha256:640c5e62cea04b6d6f2084232651d0cc70362d31f4f805e7be94dbed6855e8f2
/messenger-lab3-db-1 nanocpus=2000000000 mem_bytes=1073741824 image=postgres:17@sha256:b8faeff7712663c2773a190181e1246e37e364b887611c04658c28b44e2408fe
/messenger-lab3-lb-1 nanocpus=1000000000 mem_bytes=134217728 image=mirror.gcr.io/library/haproxy:3.0-alpine@sha256:1c15903c50d5510dcc01de755049e7015a6dd3f35bb2dc4582e888116cb71d8f
## container_name не задан; число реплик api:
2
## состояние backend'ов в HAProxy
api api1 UP
api api2 UP
api api3 MAINT (resolution)
api api4 MAINT (resolution)
api api5 MAINT (resolution)
api api6 MAINT (resolution)
api api7 MAINT (resolution)
api api8 MAINT (resolution)
api BACKEND UP
@@ -0,0 +1,5 @@
# Время обнаружения зависшего backend (docker pause) в HAProxy; 2026-11-06T17:01:52Z
# inter 1s, fall 2, timeout check 2s -> расчёт fall*(timeout check + inter) = 6 s
замер 1: DOWN detected after 5.66 s
замер 2: DOWN detected after 5.86 s
замер 3: DOWN detected after 5.82 s
+88
View File
@@ -0,0 +1,88 @@
second,ok,errors
0,268,0
1,222,0
2,280,0
3,275,0
4,286,0
5,240,0
6,280,0
7,239,0
8,254,0
9,286,0
10,264,0
11,278,0
12,282,0
13,247,0
14,303,0
15,248,0
16,298,0
17,270,0
18,260,0
19,296,0
20,276,0
21,266,0
22,258,0
23,288,0
24,274,0
25,226,0
26,230,0
27,277,0
28,185,0
29,184,0
30,166,0
31,191,0
32,185,0
33,232,0
34,182,0
35,192,0
36,180,0
37,243,0
38,246,0
39,256,0
40,271,0
41,269,0
42,263,0
43,231,0
44,276,0
45,225,0
46,289,0
47,264,0
48,277,0
49,255,0
50,265,0
51,264,0
52,290,0
53,249,0
54,267,0
55,251,0
56,278,0
57,238,0
58,243,0
59,272,0
60,266,0
61,288,0
62,36,0
64,18,0
65,280,0
66,286,0
67,242,0
68,259,0
69,238,0
70,225,0
71,41,0
74,112,0
75,265,0
76,88,0
78,275,0
79,220,0
80,172,0
81,236,0
82,236,0
83,202,0
84,214,0
85,211,0
86,263,0
87,255,0
88,243,0
89,229,0
90,44,0
1 second ok errors
2 0 268 0
3 1 222 0
4 2 280 0
5 3 275 0
6 4 286 0
7 5 240 0
8 6 280 0
9 7 239 0
10 8 254 0
11 9 286 0
12 10 264 0
13 11 278 0
14 12 282 0
15 13 247 0
16 14 303 0
17 15 248 0
18 16 298 0
19 17 270 0
20 18 260 0
21 19 296 0
22 20 276 0
23 21 266 0
24 22 258 0
25 23 288 0
26 24 274 0
27 25 226 0
28 26 230 0
29 27 277 0
30 28 185 0
31 29 184 0
32 30 166 0
33 31 191 0
34 32 185 0
35 33 232 0
36 34 182 0
37 35 192 0
38 36 180 0
39 37 243 0
40 38 246 0
41 39 256 0
42 40 271 0
43 41 269 0
44 42 263 0
45 43 231 0
46 44 276 0
47 45 225 0
48 46 289 0
49 47 264 0
50 48 277 0
51 49 255 0
52 50 265 0
53 51 264 0
54 52 290 0
55 53 249 0
56 54 267 0
57 55 251 0
58 56 278 0
59 57 238 0
60 58 243 0
61 59 272 0
62 60 266 0
63 61 288 0
64 62 36 0
65 64 18 0
66 65 280 0
67 66 286 0
68 67 242 0
69 68 259 0
70 69 238 0
71 70 225 0
72 71 41 0
73 74 112 0
74 75 265 0
75 76 88 0
76 78 275 0
77 79 220 0
78 80 172 0
79 81 236 0
80 82 236 0
81 83 202 0
82 84 214 0
83 85 211 0
84 86 263 0
85 87 255 0
86 88 243 0
87 89 229 0
88 90 44 0
+120
View File
@@ -0,0 +1,120 @@
{
"scenario": "rolling-update",
"base_url": "http://localhost:8081",
"workers": 8,
"users_and_chats": 4,
"think_time_s": 0.02,
"replicas_before": [
"6a5a3da59476",
"73c5482d0d13"
],
"total_seconds": 90.2,
"overall": {
"from_s": 5,
"to_s": 90.2,
"requests": 19263,
"errors": 0,
"rps_ok": 226.1,
"error_rate_pct": 0.0,
"p50_ms": 8.8,
"p95_ms": 39.5,
"p99_ms": 70.4,
"instances": {
"73c5482d0d13": 7431,
"6a5a3da59476": 8169,
"358f63ce0276": 2236,
"ce29e4c7dcab": 1427
}
},
"phases": [
{
"from_s": 5.0,
"to_s": 20.0,
"requests": 4040,
"errors": 0,
"rps_ok": 269.3,
"error_rate_pct": 0.0,
"p50_ms": 7.3,
"p95_ms": 27.0,
"p99_ms": 58.1,
"instances": {
"6a5a3da59476": 2020,
"73c5482d0d13": 2020
},
"name": "baseline"
},
{
"from_s": 20.0,
"to_s": 80.2,
"requests": 12936,
"errors": 0,
"rps_ok": 215.1,
"error_rate_pct": 0.0,
"p50_ms": 9.1,
"p95_ms": 39.4,
"p99_ms": 71.2,
"instances": {
"6a5a3da59476": 6149,
"73c5482d0d13": 5406,
"358f63ce0276": 1095,
"ce29e4c7dcab": 286
},
"name": "rolling update",
"errors_after_action": 0,
"recovery_seconds": 0.0
},
{
"from_s": 80.2,
"to_s": 90.2,
"requests": 2279,
"errors": 0,
"rps_ok": 227.9,
"error_rate_pct": 0.0,
"p50_ms": 10.8,
"p95_ms": 45.5,
"p99_ms": 73.2,
"instances": {
"ce29e4c7dcab": 1140,
"358f63ce0276": 1139
},
"name": "after update"
}
],
"actions": [
{
"action": "rolling-update",
"exit_code": 0,
"seconds": 60.14,
"at_s": 20.0,
"log": [
"18:39:51 replicas before: 2; building version 1793979591",
"18:40:32 migrations applied once",
"18:40:38 new replica is UP in LB; stopping old 73c5482d0d13 (version 1)",
"18:40:48 new replica is UP in LB; stopping old 6a5a3da59476 (version 1)",
"18:40:51 replicas after:",
"18:40:52 358f63ce0276 version 1793979591",
"18:40:52 ce29e4c7dcab version 1793979591"
]
}
],
"events": [
{
"t_s": 20.0,
"event": "ROLLING UPDATE start"
},
{
"t_s": 80.2,
"event": "rolling-update.sh exit=0 in 60.1s"
}
],
"data_check": {
"post_keys_used": 10294,
"post_confirmed": 10294,
"post_retries_with_same_key": 0,
"confirmed_missing_or_duplicated": 0,
"keys_with_duplicate_messages": 0,
"unconfirmed_but_written_once": 0,
"result": "PASS",
"problems": []
}
}
+68
View File
@@ -0,0 +1,68 @@
second,ok,errors
0,231,0
1,221,0
2,273,0
3,239,0
4,270,0
5,228,0
6,214,0
7,210,0
8,191,0
9,268,0
10,219,0
11,205,0
12,247,0
13,288,0
14,264,0
15,270,0
16,280,0
17,262,0
18,223,0
19,286,0
20,84,0
22,90,0
23,226,0
24,233,0
25,235,0
26,219,0
27,238,0
28,181,0
29,217,0
30,231,0
31,218,0
32,16,0
35,125,0
36,266,0
37,254,0
38,268,0
39,222,0
40,226,0
41,227,0
42,210,0
43,205,0
44,152,0
46,39,0
47,152,0
48,165,0
49,176,0
50,170,0
51,170,0
52,158,0
53,170,0
54,140,0
55,138,0
56,24,0
58,3,0
59,152,0
60,175,0
61,242,0
62,228,0
63,250,0
64,219,0
65,194,0
66,219,0
67,230,0
68,243,0
69,182,0
70,234,0
71,213,0
1 second ok errors
2 0 231 0
3 1 221 0
4 2 273 0
5 3 239 0
6 4 270 0
7 5 228 0
8 6 214 0
9 7 210 0
10 8 191 0
11 9 268 0
12 10 219 0
13 11 205 0
14 12 247 0
15 13 288 0
16 14 264 0
17 15 270 0
18 16 280 0
19 17 262 0
20 18 223 0
21 19 286 0
22 20 84 0
23 22 90 0
24 23 226 0
25 24 233 0
26 25 235 0
27 26 219 0
28 27 238 0
29 28 181 0
30 29 217 0
31 30 231 0
32 31 218 0
33 32 16 0
34 35 125 0
35 36 266 0
36 37 254 0
37 38 268 0
38 39 222 0
39 40 226 0
40 41 227 0
41 42 210 0
42 43 205 0
43 44 152 0
44 46 39 0
45 47 152 0
46 48 165 0
47 49 176 0
48 50 170 0
49 51 170 0
50 52 158 0
51 53 170 0
52 54 140 0
53 55 138 0
54 56 24 0
55 58 3 0
56 59 152 0
57 60 175 0
58 61 242 0
59 62 228 0
60 63 250 0
61 64 219 0
62 65 194 0
63 66 219 0
64 67 230 0
65 68 243 0
66 69 182 0
67 70 234 0
68 71 213 0
+189
View File
@@ -0,0 +1,189 @@
{
"scenario": "sequential-stop",
"base_url": "http://localhost:8081",
"workers": 8,
"users_and_chats": 4,
"think_time_s": 0.02,
"replicas_before": [
"6a5a3da59476",
"73c5482d0d13"
],
"total_seconds": 71.9,
"overall": {
"from_s": 5,
"to_s": 71.9,
"requests": 12284,
"errors": 0,
"rps_ok": 183.7,
"error_rate_pct": 0.0,
"p50_ms": 10.2,
"p95_ms": 55.0,
"p99_ms": 75.8,
"instances": {
"6a5a3da59476": 5980,
"73c5482d0d13": 6304
}
},
"phases": [
{
"from_s": 5.0,
"to_s": 20.0,
"requests": 3652,
"errors": 0,
"rps_ok": 243.5,
"error_rate_pct": 0.0,
"p50_ms": 8.8,
"p95_ms": 49.6,
"p99_ms": 71.0,
"instances": {
"73c5482d0d13": 1827,
"6a5a3da59476": 1825
},
"name": "baseline"
},
{
"from_s": 20.0,
"to_s": 30.7,
"requests": 1880,
"errors": 0,
"rps_ok": 176.6,
"error_rate_pct": 0.0,
"p50_ms": 11.2,
"p95_ms": 53.3,
"p99_ms": 75.0,
"instances": {
"6a5a3da59476": 28,
"73c5482d0d13": 1852
},
"name": "replica 6a5a3da59476 stopped",
"errors_after_action": 0,
"recovery_seconds": 0.0
},
{
"from_s": 30.7,
"to_s": 44.4,
"requests": 2391,
"errors": 0,
"rps_ok": 173.4,
"error_rate_pct": 0.0,
"p50_ms": 9.4,
"p95_ms": 50.2,
"p99_ms": 75.8,
"instances": {
"73c5482d0d13": 1346,
"6a5a3da59476": 1045
},
"name": "after restore of 6a5a3da59476",
"errors_after_action": 0,
"recovery_seconds": 0.0
},
{
"from_s": 44.4,
"to_s": 55.1,
"requests": 1426,
"errors": 0,
"rps_ok": 134.2,
"error_rate_pct": 0.0,
"p50_ms": 18.1,
"p95_ms": 71.7,
"p99_ms": 79.5,
"instances": {
"6a5a3da59476": 1404,
"73c5482d0d13": 22
},
"name": "replica 73c5482d0d13 stopped",
"errors_after_action": 0,
"recovery_seconds": 0.0
},
{
"from_s": 55.1,
"to_s": 71.8,
"requests": 2930,
"errors": 0,
"rps_ok": 174.7,
"error_rate_pct": 0.0,
"p50_ms": 10.7,
"p95_ms": 54.8,
"p99_ms": 76.3,
"instances": {
"6a5a3da59476": 1675,
"73c5482d0d13": 1255
},
"name": "after restore of 73c5482d0d13",
"errors_after_action": 0,
"recovery_seconds": 0.0
}
],
"actions": [
{
"action": "stop",
"target": "6a5a3da59476",
"exit_code": 0,
"hook_seconds": 0.64,
"at_s": 20.0
},
{
"action": "restore",
"exit_code": 0,
"restore_seconds": 3.79,
"at_s": 30.7
},
{
"action": "stop",
"target": "73c5482d0d13",
"exit_code": 0,
"hook_seconds": 0.63,
"at_s": 44.4
},
{
"action": "restore",
"exit_code": 0,
"restore_seconds": 6.77,
"at_s": 55.1
}
],
"events": [
{
"t_s": 20.0,
"event": "STOP replica 6a5a3da59476"
},
{
"t_s": 20.7,
"event": "stop-one.sh exit=0 in 0.6s"
},
{
"t_s": 30.7,
"event": "RESTORE replicas"
},
{
"t_s": 34.4,
"event": "restore-replicas.sh exit=0 in 3.8s: ['LB sees 2/2 api replicas UP']"
},
{
"t_s": 44.4,
"event": "STOP replica 73c5482d0d13"
},
{
"t_s": 45.1,
"event": "stop-one.sh exit=0 in 0.6s"
},
{
"t_s": 55.1,
"event": "RESTORE replicas"
},
{
"t_s": 61.8,
"event": "restore-replicas.sh exit=0 in 6.8s: ['LB sees 2/2 api replicas UP']"
}
],
"data_check": {
"post_keys_used": 6757,
"post_confirmed": 6757,
"post_retries_with_same_key": 0,
"confirmed_missing_or_duplicated": 0,
"keys_with_duplicate_messages": 0,
"unconfirmed_but_written_once": 0,
"result": "PASS",
"problems": []
}
}
+50
View File
@@ -0,0 +1,50 @@
second,ok,errors
0,241,0
1,289,0
2,275,0
3,279,0
4,204,0
5,267,0
6,275,0
7,273,0
8,285,0
9,224,0
10,217,0
11,276,0
12,276,0
13,275,0
14,206,0
15,196,0
16,218,0
17,292,0
18,274,0
19,273,0
20,72,0
25,8,3
30,135,6
31,268,0
32,293,0
33,291,0
34,295,0
35,273,0
36,281,0
37,295,0
38,290,0
39,289,0
40,275,0
41,294,0
42,104,0
47,8,5
52,125,7
53,267,0
54,280,0
55,280,0
56,292,0
57,272,0
58,286,0
59,291,0
60,291,0
61,270,0
62,275,0
63,293,0
64,85,0
1 second ok errors
2 0 241 0
3 1 289 0
4 2 275 0
5 3 279 0
6 4 204 0
7 5 267 0
8 6 275 0
9 7 273 0
10 8 285 0
11 9 224 0
12 10 217 0
13 11 276 0
14 12 276 0
15 13 275 0
16 14 206 0
17 15 196 0
18 16 218 0
19 17 292 0
20 18 274 0
21 19 273 0
22 20 72 0
23 25 8 3
24 30 135 6
25 31 268 0
26 32 293 0
27 33 291 0
28 34 295 0
29 35 273 0
30 36 281 0
31 37 295 0
32 38 290 0
33 39 289 0
34 40 275 0
35 41 294 0
36 42 104 0
37 47 8 5
38 52 125 7
39 53 267 0
40 54 280 0
41 55 280 0
42 56 292 0
43 57 272 0
44 58 286 0
45 59 291 0
46 60 291 0
47 61 270 0
48 62 275 0
49 63 293 0
50 64 85 0
+197
View File
@@ -0,0 +1,197 @@
{
"scenario": "sequential-stop",
"base_url": "http://localhost:8081",
"workers": 8,
"users_and_chats": 4,
"think_time_s": 0.02,
"replicas_before": [
"13b0fc8945bc",
"65e3ad44afc9"
],
"total_seconds": 64.3,
"overall": {
"from_s": 5,
"to_s": 64.3,
"requests": 10626,
"errors": 21,
"rps_ok": 178.8,
"error_rate_pct": 0.2,
"p50_ms": 8.3,
"p95_ms": 19.8,
"p99_ms": 52.9,
"instances": {
"13b0fc8945bc": 5312,
"65e3ad44afc9": 5293
}
},
"phases": [
{
"from_s": 5.0,
"to_s": 20.0,
"requests": 3827,
"errors": 0,
"rps_ok": 255.1,
"error_rate_pct": 0.0,
"p50_ms": 8.6,
"p95_ms": 44.9,
"p99_ms": 59.5,
"instances": {
"65e3ad44afc9": 1914,
"13b0fc8945bc": 1913
},
"name": "baseline"
},
{
"from_s": 20.0,
"to_s": 30.3,
"requests": 82,
"errors": 3,
"rps_ok": 7.7,
"error_rate_pct": 3.66,
"p50_ms": 9.1,
"p95_ms": 15.9,
"p99_ms": 5011.2,
"instances": {
"65e3ad44afc9": 47,
"13b0fc8945bc": 32
},
"name": "replica 13b0fc8945bc stopped",
"errors_after_action": 21,
"errors_in_first_cluster": 3,
"first_error_after_s": 5.23,
"recovery_seconds": 5.26
},
{
"from_s": 30.3,
"to_s": 42.2,
"requests": 3327,
"errors": 6,
"rps_ok": 279.1,
"error_rate_pct": 0.18,
"p50_ms": 8.0,
"p95_ms": 14.4,
"p99_ms": 45.2,
"instances": {
"65e3ad44afc9": 1780,
"13b0fc8945bc": 1541
},
"name": "after restore of 13b0fc8945bc",
"errors_after_action": 18,
"errors_in_first_cluster": 6,
"first_error_after_s": 0.0,
"recovery_seconds": 0.15
},
{
"from_s": 42.2,
"to_s": 52.4,
"requests": 75,
"errors": 5,
"rps_ok": 6.9,
"error_rate_pct": 6.67,
"p50_ms": 7.9,
"p95_ms": 12.9,
"p99_ms": 5009.7,
"instances": {
"65e3ad44afc9": 27,
"13b0fc8945bc": 43
},
"name": "replica 65e3ad44afc9 stopped",
"errors_after_action": 12,
"errors_in_first_cluster": 5,
"first_error_after_s": 5.2,
"recovery_seconds": 5.3
},
{
"from_s": 52.4,
"to_s": 64.3,
"requests": 3313,
"errors": 7,
"rps_ok": 277.4,
"error_rate_pct": 0.21,
"p50_ms": 8.2,
"p95_ms": 15.0,
"p99_ms": 33.4,
"instances": {
"13b0fc8945bc": 1782,
"65e3ad44afc9": 1524
},
"name": "after restore of 65e3ad44afc9",
"errors_after_action": 7,
"errors_in_first_cluster": 7,
"first_error_after_s": 0.03,
"recovery_seconds": 0.15
}
],
"actions": [
{
"action": "stop",
"target": "13b0fc8945bc",
"exit_code": 0,
"hook_seconds": 0.24,
"at_s": 20.0
},
{
"action": "restore",
"exit_code": 0,
"restore_seconds": 1.9,
"at_s": 30.3
},
{
"action": "stop",
"target": "65e3ad44afc9",
"exit_code": 0,
"hook_seconds": 0.21,
"at_s": 42.2
},
{
"action": "restore",
"exit_code": 0,
"restore_seconds": 1.92,
"at_s": 52.4
}
],
"events": [
{
"t_s": 20.0,
"event": "STOP replica 13b0fc8945bc"
},
{
"t_s": 20.3,
"event": "stop-one.sh exit=0 in 0.2s"
},
{
"t_s": 30.3,
"event": "RESTORE replicas"
},
{
"t_s": 32.2,
"event": "restore-replicas.sh exit=0 in 1.9s: ['LB sees 2/2 api replicas UP']"
},
{
"t_s": 42.2,
"event": "STOP replica 65e3ad44afc9"
},
{
"t_s": 42.4,
"event": "stop-one.sh exit=0 in 0.2s"
},
{
"t_s": 52.4,
"event": "RESTORE replicas"
},
{
"t_s": 54.3,
"event": "restore-replicas.sh exit=0 in 1.9s: ['LB sees 2/2 api replicas UP']"
}
],
"data_check": {
"post_keys_used": 5948,
"post_confirmed": 5948,
"post_retries_with_same_key": 16,
"confirmed_missing_or_duplicated": 0,
"keys_with_duplicate_messages": 0,
"unconfirmed_but_written_once": 0,
"result": "PASS",
"problems": []
}
}
+75
View File
@@ -0,0 +1,75 @@
second,ok,errors
0,271,0
1,289,0
2,196,0
3,214,0
4,260,0
5,241,0
6,196,0
7,196,0
8,285,0
9,262,0
10,254,0
11,263,0
12,273,0
13,286,0
14,280,0
15,221,0
16,275,0
17,246,0
18,239,0
19,298,0
20,242,0
21,200,0
22,262,0
23,271,0
24,267,0
25,235,0
26,239,0
27,247,0
28,261,0
29,266,0
30,257,0
31,263,0
32,259,0
33,254,0
34,186,0
36,16,0
37,237,0
38,274,0
39,266,0
40,232,0
41,233,0
42,253,0
43,265,0
44,272,0
45,250,0
46,235,0
47,239,0
48,267,0
49,182,0
50,152,0
51,172,0
52,171,0
53,160,0
54,164,0
55,162,0
56,167,0
57,135,0
58,157,0
59,163,0
60,183,0
61,118,0
64,80,0
65,182,0
66,221,0
67,215,0
68,249,0
69,226,0
70,248,0
71,242,0
72,259,0
73,254,0
74,185,0
75,254,0
76,63,0
1 second ok errors
2 0 271 0
3 1 289 0
4 2 196 0
5 3 214 0
6 4 260 0
7 5 241 0
8 6 196 0
9 7 196 0
10 8 285 0
11 9 262 0
12 10 254 0
13 11 263 0
14 12 273 0
15 13 286 0
16 14 280 0
17 15 221 0
18 16 275 0
19 17 246 0
20 18 239 0
21 19 298 0
22 20 242 0
23 21 200 0
24 22 262 0
25 23 271 0
26 24 267 0
27 25 235 0
28 26 239 0
29 27 247 0
30 28 261 0
31 29 266 0
32 30 257 0
33 31 263 0
34 32 259 0
35 33 254 0
36 34 186 0
37 36 16 0
38 37 237 0
39 38 274 0
40 39 266 0
41 40 232 0
42 41 233 0
43 42 253 0
44 43 265 0
45 44 272 0
46 45 250 0
47 46 235 0
48 47 239 0
49 48 267 0
50 49 182 0
51 50 152 0
52 51 172 0
53 52 171 0
54 53 160 0
55 54 164 0
56 55 162 0
57 56 167 0
58 57 135 0
59 58 157 0
60 59 163 0
61 60 183 0
62 61 118 0
63 64 80 0
64 65 182 0
65 66 221 0
66 67 215 0
67 68 249 0
68 69 226 0
69 70 248 0
70 71 242 0
71 72 259 0
72 73 254 0
73 74 185 0
74 75 254 0
75 76 63 0
+189
View File
@@ -0,0 +1,189 @@
{
"scenario": "sequential-stop",
"base_url": "http://localhost:8081",
"workers": 8,
"users_and_chats": 4,
"think_time_s": 0.02,
"replicas_before": [
"6a5a3da59476",
"73c5482d0d13"
],
"total_seconds": 76.3,
"overall": {
"from_s": 5,
"to_s": 76.3,
"requests": 15327,
"errors": 0,
"rps_ok": 215.0,
"error_rate_pct": 0.0,
"p50_ms": 9.9,
"p95_ms": 48.3,
"p99_ms": 71.5,
"instances": {
"6a5a3da59476": 7181,
"73c5482d0d13": 8146
}
},
"phases": [
{
"from_s": 5.0,
"to_s": 20.0,
"requests": 3815,
"errors": 0,
"rps_ok": 254.3,
"error_rate_pct": 0.0,
"p50_ms": 8.8,
"p95_ms": 42.7,
"p99_ms": 57.6,
"instances": {
"73c5482d0d13": 1907,
"6a5a3da59476": 1908
},
"name": "baseline"
},
{
"from_s": 20.0,
"to_s": 33.8,
"requests": 3483,
"errors": 0,
"rps_ok": 252.6,
"error_rate_pct": 0.0,
"p50_ms": 8.9,
"p95_ms": 28.2,
"p99_ms": 51.3,
"instances": {
"6a5a3da59476": 200,
"73c5482d0d13": 3283
},
"name": "replica 6a5a3da59476 stopped",
"errors_after_action": 0,
"recovery_seconds": 0.0
},
{
"from_s": 33.8,
"to_s": 47.1,
"requests": 2764,
"errors": 0,
"rps_ok": 208.1,
"error_rate_pct": 0.0,
"p50_ms": 8.9,
"p95_ms": 36.0,
"p99_ms": 69.4,
"instances": {
"73c5482d0d13": 1493,
"6a5a3da59476": 1271
},
"name": "after restore of 6a5a3da59476",
"errors_after_action": 0,
"recovery_seconds": 0.0
},
{
"from_s": 47.1,
"to_s": 60.7,
"requests": 2429,
"errors": 0,
"rps_ok": 177.8,
"error_rate_pct": 0.0,
"p50_ms": 16.2,
"p95_ms": 66.4,
"p99_ms": 76.1,
"instances": {
"73c5482d0d13": 246,
"6a5a3da59476": 2183
},
"name": "replica 73c5482d0d13 stopped",
"errors_after_action": 0,
"recovery_seconds": 0.0
},
{
"from_s": 60.7,
"to_s": 76.3,
"requests": 2833,
"errors": 0,
"rps_ok": 182.5,
"error_rate_pct": 0.0,
"p50_ms": 11.8,
"p95_ms": 49.2,
"p99_ms": 78.1,
"instances": {
"6a5a3da59476": 1618,
"73c5482d0d13": 1215
},
"name": "after restore of 73c5482d0d13",
"errors_after_action": 0,
"recovery_seconds": 0.0
}
],
"actions": [
{
"action": "stop",
"target": "6a5a3da59476",
"exit_code": 0,
"hook_seconds": 3.79,
"at_s": 20.0
},
{
"action": "restore",
"exit_code": 0,
"restore_seconds": 3.28,
"at_s": 33.8
},
{
"action": "stop",
"target": "73c5482d0d13",
"exit_code": 0,
"hook_seconds": 3.66,
"at_s": 47.1
},
{
"action": "restore",
"exit_code": 0,
"restore_seconds": 5.52,
"at_s": 60.7
}
],
"events": [
{
"t_s": 20.0,
"event": "STOP replica 6a5a3da59476"
},
{
"t_s": 23.8,
"event": "stop-one.sh exit=0 in 3.8s"
},
{
"t_s": 33.8,
"event": "RESTORE replicas"
},
{
"t_s": 37.1,
"event": "restore-replicas.sh exit=0 in 3.3s: ['LB sees 2/2 api replicas UP']"
},
{
"t_s": 47.1,
"event": "STOP replica 73c5482d0d13"
},
{
"t_s": 50.7,
"event": "stop-one.sh exit=0 in 3.7s"
},
{
"t_s": 60.7,
"event": "RESTORE replicas"
},
{
"t_s": 66.3,
"event": "restore-replicas.sh exit=0 in 5.5s: ['LB sees 2/2 api replicas UP']"
}
],
"data_check": {
"post_keys_used": 8277,
"post_confirmed": 8277,
"post_retries_with_same_key": 0,
"confirmed_missing_or_duplicated": 0,
"keys_with_duplicate_messages": 0,
"unconfirmed_but_written_once": 0,
"result": "PASS",
"problems": []
}
}
+9
View File
@@ -0,0 +1,9 @@
{"label":"D-diag-4x0.5-256m","timestamp":"2026-11-06T16:03:56.0006028\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.27,"ok":6239,"errors":0,"ok_get":4984,"ok_post":1255,"rps":307.7,"p50_ms":108.12,"p95_ms":711.22,"p99_ms":1034.71,"cpu_pct":{"api":200.8,"lb":15.5,"db":66.9,"cache":4.7}}
{"label":"D-diag-4x0.5-1024m","timestamp":"2026-11-06T16:06:22.2841093\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.26,"ok":6968,"errors":0,"ok_get":5600,"ok_post":1368,"rps":344,"p50_ms":110.25,"p95_ms":511.02,"p99_ms":711.37,"cpu_pct":{"api":204,"lb":17.5,"db":78.9,"cache":4.4}}
{"label":"D-diag-1x2.0-1024m","timestamp":"2026-11-06T16:07:31.6312009\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.04,"ok":15886,"errors":0,"ok_get":12701,"ok_post":3185,"rps":792.8,"p50_ms":80.73,"p95_ms":120.47,"p99_ms":161.79,"cpu_pct":{"api":200.9,"lb":28.4,"db":130.4,"cache":4.4}}
{"label":"D-diag2-4x0.5","timestamp":"2026-11-06T16:10:15.3681126\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.16,"ok":7033,"errors":0,"ok_get":5633,"ok_post":1400,"rps":348.8,"p50_ms":106.54,"p95_ms":511.74,"p99_ms":1019.47,"cpu_pct":{"api":199.2,"lb":17.3,"db":73.8,"cache":4.8}}
{"label":"D-diag2-1x2.0","timestamp":"2026-11-06T16:11:25.0375500\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.06,"ok":15610,"errors":0,"ok_get":12504,"ok_post":3106,"rps":778.1,"p50_ms":81.59,"p95_ms":123.69,"p99_ms":176.95,"cpu_pct":{"api":201.8,"lb":28.3,"db":129.9,"cache":4.1}}
{"label":"E-cpuset01-1x","timestamp":"2026-11-06T16:15:00.1444600\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.04,"ok":18580,"errors":0,"ok_get":14824,"ok_post":3756,"rps":927.1,"p50_ms":66.51,"p95_ms":104.05,"p99_ms":124.71,"cpu_pct":{"api":199.6,"lb":30.9,"db":133,"cache":4.4}}
{"label":"E-cpuset01-4x","timestamp":"2026-11-06T16:16:15.6164819\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.07,"ok":11329,"errors":0,"ok_get":9101,"ok_post":2228,"rps":564.5,"p50_ms":84.85,"p95_ms":312.72,"p99_ms":431.02,"cpu_pct":{"api":202.9,"lb":24.1,"db":89.9,"cache":5.9}}
{"label":"E-cpuset01-1x","timestamp":"2026-11-06T16:17:14.8661071\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.03,"ok":18634,"errors":0,"ok_get":14947,"ok_post":3687,"rps":930.2,"p50_ms":65.97,"p95_ms":105.52,"p99_ms":129.84,"cpu_pct":{"api":201.2,"lb":31.1,"db":131.1,"cache":3.9}}
{"label":"E-cpuset01-4x","timestamp":"2026-11-06T16:18:34.6884111\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.05,"ok":11672,"errors":0,"ok_get":9217,"ok_post":2455,"rps":582.1,"p50_ms":85.12,"p95_ms":294.25,"p99_ms":440.59,"cpu_pct":{"api":215,"lb":26.6,"db":99,"cache":6.3}}
Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

+33
View File
@@ -0,0 +1,33 @@
{"label":"A-r1-4x0.5","timestamp":"2026-11-06T15:48:13.9897112\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.22,"ok":6190,"errors":0,"ok_get":4937,"ok_post":1253,"rps":306.1,"p50_ms":104.39,"p95_ms":716.41,"p99_ms":928.2,"cpu_pct":{"api":200.7,"lb":15,"db":66.8,"cache":4.4}}
{"label":"A-r1-1x2.0","timestamp":"2026-11-06T15:49:22.1092142\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.05,"ok":14992,"errors":0,"ok_get":11926,"ok_post":3066,"rps":747.8,"p50_ms":83.69,"p95_ms":139.83,"p99_ms":178.93,"cpu_pct":{"api":203.1,"lb":28.6,"db":132.4,"cache":4.8}}
{"label":"A-r1-2x1.0","timestamp":"2026-11-06T15:51:01.6047574\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.1,"ok":9812,"errors":0,"ok_get":7860,"ok_post":1952,"rps":488.1,"p50_ms":107,"p95_ms":318.48,"p99_ms":409.85,"cpu_pct":{"api":195.2,"lb":20.7,"db":92.8,"cache":4.6}}
{"label":"A-r2-4x0.5","timestamp":"2026-11-06T15:53:22.0589884\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.19,"ok":6612,"errors":0,"ok_get":5275,"ok_post":1337,"rps":327.5,"p50_ms":181.12,"p95_ms":513.29,"p99_ms":735.71,"cpu_pct":{"api":198.9,"lb":15.8,"db":69.4,"cache":4.4}}
{"label":"A-r2-1x2.0","timestamp":"2026-11-06T15:54:31.3678292\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.07,"ok":13912,"errors":0,"ok_get":11133,"ok_post":2779,"rps":693.1,"p50_ms":91.88,"p95_ms":166.48,"p99_ms":200.24,"cpu_pct":{"api":203.6,"lb":27.6,"db":127.3,"cache":4.6}}
{"label":"A-r2-2x1.0","timestamp":"2026-11-06T15:56:10.3256987\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.2,"ok":7629,"errors":0,"ok_get":6093,"ok_post":1536,"rps":377.8,"p50_ms":125.07,"p95_ms":410.94,"p99_ms":549.93,"cpu_pct":{"api":203.3,"lb":17.1,"db":81.6,"cache":4}}
{"label":"A-r3-4x0.5","timestamp":"2026-11-06T15:58:31.4805703\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.26,"ok":6603,"errors":0,"ok_get":5277,"ok_post":1326,"rps":326,"p50_ms":111.63,"p95_ms":596.34,"p99_ms":816.62,"cpu_pct":{"api":201.6,"lb":17.4,"db":76.8,"cache":4.4}}
{"label":"A-r3-2x1.0","timestamp":"2026-11-06T16:00:05.0176800\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.08,"ok":8705,"errors":0,"ok_get":6950,"ok_post":1755,"rps":433.6,"p50_ms":117.83,"p95_ms":387.88,"p99_ms":480.26,"cpu_pct":{"api":198.2,"lb":18.3,"db":81.4,"cache":4}}
{"label":"A-r3-1x2.0","timestamp":"2026-11-06T16:01:12.3742906\u002B00:00","clients":64,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.06,"ok":14030,"errors":0,"ok_get":11159,"ok_post":2871,"rps":699.5,"p50_ms":92.84,"p95_ms":163.52,"p99_ms":192.3,"cpu_pct":{"api":205.3,"lb":27.6,"db":133.4,"cache":4.5}}
{"label":"B-r1-4x1.0-db2","timestamp":"2026-11-06T16:20:50.2721570\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.14,"ok":12264,"errors":0,"ok_get":9826,"ok_post":2438,"rps":609,"p50_ms":99.71,"p95_ms":756.34,"p99_ms":1029.28,"cpu_pct":{"lb":36.4,"api":408.9,"db":153.5,"cache":9.5}}
{"label":"B-r1-2x1.0-db2","timestamp":"2026-11-06T16:21:55.0929565\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.13,"ok":11706,"errors":0,"ok_get":9353,"ok_post":2353,"rps":581.4,"p50_ms":208.66,"p95_ms":504.34,"p99_ms":609.43,"cpu_pct":{"lb":26.4,"api":203.8,"db":112.6,"cache":5.2}}
{"label":"B-r1-8x1.0-db2","timestamp":"2026-11-06T16:23:26.7718923\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.15,"ok":15944,"errors":0,"ok_get":12755,"ok_post":3189,"rps":791.3,"p50_ms":108.1,"p95_ms":482.66,"p99_ms":692.6,"cpu_pct":{"api":681,"lb":55.9,"db":211.5,"cache":14.5}}
{"label":"B-r1-1x1.0-db2","timestamp":"2026-11-06T16:24:52.6949390\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.14,"ok":7990,"errors":0,"ok_get":6400,"ok_post":1590,"rps":396.8,"p50_ms":321.11,"p95_ms":480.87,"p99_ms":570.37,"cpu_pct":{"lb":15.6,"api":100.2,"db":63.4,"cache":2.9}}
{"label":"B-r2-2x1.0-db2","timestamp":"2026-11-06T16:26:05.6541691\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.11,"ok":9367,"errors":0,"ok_get":7539,"ok_post":1828,"rps":465.9,"p50_ms":204.97,"p95_ms":780.67,"p99_ms":941.37,"cpu_pct":{"api":197.5,"lb":20.5,"db":81.9,"cache":4.5}}
{"label":"B-r2-1x1.0-db2","timestamp":"2026-11-06T16:27:28.9493157\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.33,"ok":6631,"errors":0,"ok_get":5296,"ok_post":1335,"rps":326.2,"p50_ms":408.08,"p95_ms":518.55,"p99_ms":607.08,"cpu_pct":{"lb":14.2,"api":103,"db":65.2,"cache":2.4}}
{"label":"B-r2-4x1.0-db2","timestamp":"2026-11-06T16:28:52.6844941\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.14,"ok":13758,"errors":0,"ok_get":10973,"ok_post":2785,"rps":683.3,"p50_ms":99.76,"p95_ms":619.03,"p99_ms":860.89,"cpu_pct":{"api":405.4,"lb":37.2,"db":159.5,"cache":8.9}}
{"label":"B-r2-8x1.0-db2","timestamp":"2026-11-06T16:30:08.2896985\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.1,"ok":16117,"errors":0,"ok_get":12900,"ok_post":3217,"rps":801.8,"p50_ms":83.5,"p95_ms":582.93,"p99_ms":869.16,"cpu_pct":{"api":698.8,"lb":55.5,"db":211.1,"cache":15.6}}
{"label":"B-r3-4x1.0-db2","timestamp":"2026-11-06T16:31:08.6339895\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.15,"ok":17792,"errors":0,"ok_get":14274,"ok_post":3518,"rps":882.8,"p50_ms":101.48,"p95_ms":398.55,"p99_ms":533.4,"cpu_pct":{"api":414,"lb":46.4,"db":202.9,"cache":11.5}}
{"label":"B-r3-1x1.0-db2","timestamp":"2026-11-06T16:32:22.3096975\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.17,"ok":8228,"errors":0,"ok_get":6573,"ok_post":1655,"rps":408,"p50_ms":302.54,"p95_ms":498.28,"p99_ms":609.43,"cpu_pct":{"lb":14.8,"api":100.8,"db":63.1,"cache":2.8}}
{"label":"B-r3-8x1.0-db2","timestamp":"2026-11-06T16:33:46.8007092\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.17,"ok":15974,"errors":0,"ok_get":12745,"ok_post":3229,"rps":792,"p50_ms":104.38,"p95_ms":509.25,"p99_ms":782.15,"cpu_pct":{"api":710.9,"lb":50.4,"db":207.3,"cache":13.7}}
{"label":"B-r3-2x1.0-db2","timestamp":"2026-11-06T16:34:54.6411416\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.1,"ok":12535,"errors":0,"ok_get":10000,"ok_post":2535,"rps":623.7,"p50_ms":188.95,"p95_ms":480.09,"p99_ms":610.62,"cpu_pct":{"api":201.8,"lb":28.7,"db":113,"cache":5.6}}
{"label":"C-r1-db4cpu","timestamp":"2026-11-06T16:37:03.0321098\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.16,"ok":20105,"errors":0,"ok_get":15993,"ok_post":4112,"rps":997.4,"p50_ms":71.2,"p95_ms":432.28,"p99_ms":706.84,"cpu_pct":{"api":743.1,"db":245.9,"lb":58.2,"cache":16}}
{"label":"C-r1-base","timestamp":"2026-11-06T16:38:05.4895102\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.16,"ok":16468,"errors":0,"ok_get":13143,"ok_post":3325,"rps":817,"p50_ms":101.4,"p95_ms":490.52,"p99_ms":726.87,"cpu_pct":{"db":213.6,"api":564.4,"lb":53.5,"cache":14}}
{"label":"C-r1-pool4","timestamp":"2026-11-06T16:39:46.7558272\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.12,"ok":16218,"errors":0,"ok_get":12986,"ok_post":3232,"rps":806.1,"p50_ms":83.41,"p95_ms":565.51,"p99_ms":843.6,"cpu_pct":{"api":726.8,"db":192.2,"lb":48.7,"cache":15.7}}
{"label":"C-r1-pool8","timestamp":"2026-11-06T16:41:25.3990791\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.21,"ok":16823,"errors":0,"ok_get":13441,"ok_post":3382,"rps":832.4,"p50_ms":103.38,"p95_ms":455.83,"p99_ms":684.87,"cpu_pct":{"api":720.2,"db":206.3,"lb":53,"cache":15}}
{"label":"C-r2-pool8","timestamp":"2026-11-06T16:42:22.5967168\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.11,"ok":17294,"errors":0,"ok_get":13841,"ok_post":3453,"rps":860.1,"p50_ms":107.65,"p95_ms":400.3,"p99_ms":624.14,"cpu_pct":{"api":640.9,"db":210.8,"lb":50.5,"cache":14.7}}
{"label":"C-r2-base","timestamp":"2026-11-06T16:44:01.5852594\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.15,"ok":16361,"errors":0,"ok_get":13100,"ok_post":3261,"rps":811.9,"p50_ms":106.11,"p95_ms":469.9,"p99_ms":691.81,"cpu_pct":{"api":699.6,"db":211.9,"lb":52.9,"cache":13.7}}
{"label":"C-r2-pool4","timestamp":"2026-11-06T16:45:44.1402446\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.23,"ok":16472,"errors":0,"ok_get":13124,"ok_post":3348,"rps":814.2,"p50_ms":99.17,"p95_ms":478.53,"p99_ms":684.43,"cpu_pct":{"api":748.8,"db":206.4,"lb":50.6,"cache":16.3}}
{"label":"C-r2-db4cpu","timestamp":"2026-11-06T16:47:33.2011395\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.19,"ok":21294,"errors":0,"ok_get":17024,"ok_post":4270,"rps":1054.4,"p50_ms":87.52,"p95_ms":334.61,"p99_ms":477.46,"cpu_pct":{"api":753.4,"db":262.8,"lb":63.9,"cache":15.2}}
{"label":"C-r3-pool8","timestamp":"2026-11-06T16:49:21.2263819\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.16,"ok":16905,"errors":0,"ok_get":13603,"ok_post":3302,"rps":838.5,"p50_ms":105.29,"p95_ms":430.51,"p99_ms":626.2,"cpu_pct":{"api":701.5,"db":210.7,"lb":53.3,"cache":15}}
{"label":"C-r3-db4cpu","timestamp":"2026-11-06T16:51:03.6195872\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.26,"ok":19508,"errors":0,"ok_get":15537,"ok_post":3971,"rps":962.9,"p50_ms":82.5,"p95_ms":409.2,"p99_ms":622.44,"cpu_pct":{"api":756.5,"db":244.7,"lb":58.1,"cache":14.7}}
{"label":"C-r3-base","timestamp":"2026-11-06T16:52:07.4058164\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.13,"ok":16501,"errors":0,"ok_get":13128,"ok_post":3373,"rps":819.7,"p50_ms":99.7,"p95_ms":505.98,"p99_ms":736.14,"cpu_pct":{"db":210.5,"api":610.9,"lb":53.2,"cache":14.7}}
{"label":"C-r3-pool4","timestamp":"2026-11-06T16:53:47.9345113\u002B00:00","clients":128,"users":32,"history":200,"write_ratio":0.2,"duration_s":20.28,"ok":15371,"errors":0,"ok_get":12334,"ok_post":3037,"rps":757.8,"p50_ms":97.36,"p95_ms":530.03,"p99_ms":870.31,"cpu_pct":{"api":736,"db":200.7,"lb":51.6,"cache":15.5}}
+53
View File
@@ -0,0 +1,53 @@
# Трек 1: сводка измерений
Сгенерировано `tools/ScaleLoad/summarize.py` из `results.jsonl` (повторы в случайном порядке; среднее по повторам).
### A. Фиксированный бюджет API: 2 CPU / 1 GiB суммарно (БД 4 CPU, LB 2 CPU, 64 клиента)
| Конфигурация | повторов | RPS (среднее) | RPS мин–макс | p50, мс | p95, мс | p99, мс | ошибки | CPU API, % | CPU БД, % | CPU API мс/запрос | CPU БД мс/запрос |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 × 2.0 CPU | 3 | 713 | 693–748 | 89 | 157 | 190 | 0 | 204 | 131 | 2.86 | 1.84 |
| 2 × 1.0 CPU | 3 | 433 | 378–488 | 117 | 372 | 480 | 0 | 199 | 85 | 4.59 | 1.97 |
| 4 × 0.5 CPU | 3 | 320 | 306–328 | 132 | 609 | 827 | 0 | 200 | 71 | 6.27 | 2.22 |
### B. Рост ресурсов: реплики по 1 CPU / 512 MiB, БД 2 CPU, LB 1 CPU, 128 клиентов
| Конфигурация | повторов | RPS (среднее) | RPS мин–макс | p50, мс | p95, мс | p99, мс | ошибки | CPU API, % | CPU БД, % | CPU API мс/запрос | CPU БД мс/запрос |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 × 1.0 CPU | 3 | 377 | 326–408 | 344 | 499 | 596 | 0 | 101 | 64 | 2.69 | 1.69 |
| 2 × 1.0 CPU | 3 | 557 | 466–624 | 201 | 588 | 720 | 0 | 201 | 102 | 3.61 | 1.84 |
| 4 × 1.0 CPU | 3 | 725 | 609–883 | 100 | 591 | 808 | 0 | 409 | 172 | 5.65 | 2.37 |
| 8 × 1.0 CPU | 3 | 795 | 791–802 | 99 | 525 | 781 | 0 | 697 | 210 | 8.77 | 2.64 |
### C. Проверка узкого места: 8 × 1 CPU, 128 клиентов
| Конфигурация | повторов | RPS (среднее) | RPS мин–макс | p50, мс | p95, мс | p99, мс | ошибки | CPU API, % | CPU БД, % | CPU API мс/запрос | CPU БД мс/запрос |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 8 реплик, пул 20, БД 2 CPU (контроль) | 3 | 816 | 812–820 | 102 | 489 | 718 | 0 | 625 | 212 | 7.66 | 2.60 |
| 8 реплик, пул 4, БД 2 CPU | 3 | 793 | 758–814 | 93 | 525 | 799 | 0 | 737 | 200 | 9.30 | 2.52 |
| 8 реплик, пул 8, БД 2 CPU | 3 | 844 | 832–860 | 105 | 429 | 645 | 0 | 688 | 209 | 8.15 | 2.48 |
| 8 реплик, пул 20, БД 4 CPU | 3 | 1005 | 963–1054 | 80 | 392 | 602 | 0 | 751 | 251 | 7.47 | 2.50 |
### E. Диагностика: API закреплён за ядрами 0–1 (cpuset, без квоты CFS), 64 клиента
| Конфигурация | повторов | RPS (среднее) | RPS мин–макс | p50, мс | p95, мс | p99, мс | ошибки | CPU API, % | CPU БД, % | CPU API мс/запрос | CPU БД мс/запрос |
|---|---|---|---|---|---|---|---|---|---|---|---|
| E-cpuset01-1x | 2 | 929 | 927–930 | 66 | 105 | 127 | 0 | 200 | 132 | 2.16 | 1.42 |
| E-cpuset01-4x | 2 | 573 | 564–582 | 85 | 303 | 436 | 0 | 209 | 94 | 3.64 | 1.65 |
### Соединения с PostgreSQL после замера (эксперимент C)
```
C-r1-db4cpu db_connections_after_run=161
C-r1-base db_connections_after_run=161
C-r1-pool4 db_connections_after_run=33
C-r1-pool8 db_connections_after_run=65
C-r2-pool8 db_connections_after_run=65
C-r2-base db_connections_after_run=161
C-r2-pool4 db_connections_after_run=33
C-r2-db4cpu db_connections_after_run=161
C-r3-pool8 db_connections_after_run=65
C-r3-db4cpu db_connections_after_run=161
C-r3-base db_connections_after_run=161
C-r3-pool4 db_connections_after_run=33
```