Fix: reject revoked tokens on all replicas when Redis writes fail

This commit is contained in:
2026-10-23 22:33:12 +03:00
parent af184cabe3
commit 4abbe84847
42 changed files with 876 additions and 501 deletions
@@ -1,2 +1,2 @@
{"mode": "kill", "target": "api-1", "target_instance": "7b89cf61597b", "restored_instance": "7b89cf61597b",
"load_start": 1792755242253, "fault": 1792755252286, "fault_done": 1792755252443, "restore_begin": 1792755267305, "restore_healthy": 1792755269813}
{"mode": "kill", "target": "api-1", "target_instance": "ef8f943d313b", "restored_instance": "ef8f943d313b",
"load_start": 1792781931991, "fault": 1792781942042, "fault_done": 1792781942234, "restore_begin": 1792781957033, "restore_healthy": 1792781959476}
+11 -11
View File
@@ -3,23 +3,23 @@
█ TOTAL RESULTS
CUSTOM
served_by......................: 6726 146.724721/s
served_by......................: 6713 145.257079/s
HTTP
http_req_duration..............: avg=24.62ms med=1.73ms p(95)=6.23ms p(99)=1s max=1.01s
{ expected_response:true }...: avg=24.62ms med=1.73ms p(95)=6.23ms p(99)=1s max=1.01s
http_req_failed................: 0.00% 0 out of 6747
http_reqs......................: 6747 147.182826/s
http_req_duration..............: avg=42.08ms med=2.01ms p(95)=171.07ms p(99)=1s max=1.29s
{ expected_response:true }...: avg=42.08ms med=2.01ms p(95)=171.07ms p(99)=1s max=1.29s
http_req_failed................: 0.00% 0 out of 6734
http_reqs......................: 6734 145.711481/s
EXECUTION
dropped_iterations.............: 25 0.545364/s
iteration_duration.............: avg=24.77ms med=1.92ms p(95)=6.16ms p(99)=1s max=1.01s
iterations.....................: 6726 146.724721/s
vus............................: 0 min=0 max=66
vus_max........................: 75 min=50 max=75
dropped_iterations.............: 38 0.822251/s
iteration_duration.............: avg=42.25ms med=2.21ms p(95)=171.3ms p(99)=1s max=1.29s
iterations.....................: 6713 145.257079/s
vus............................: 1 min=0 max=85
vus_max........................: 88 min=50 max=88
NETWORK
data_received..................: 2.6 MB 57 kB/s
data_received..................: 2.6 MB 56 kB/s
data_sent......................: 1.3 MB 29 kB/s
@@ -1,46 +1,46 @@
second,ok,errors,p99_ms,max_ms,4fa49e9e1a53,7b89cf61597b
0,151,0,11.9,12.3,75,76
1,149,0,5.9,6.7,75,74
2,150,0,9.8,10.5,75,75
3,150,0,6.4,7.3,75,75
4,150,0,7.0,7.9,75,75
5,151,0,5.8,7.8,75,76
6,150,0,3.9,7.1,75,75
7,149,0,6.2,6.5,75,74
8,150,0,6.2,6.4,75,75
9,151,0,6.1,7.3,75,76
10,97,0,7.6,7.6,77,20
11,104,0,1007.5,1009.4,104,0
12,224,0,1006.6,1011.5,224,0
13,150,0,7.1,15.8,150,0
14,150,0,8.9,22.4,150,0
15,150,0,4.3,5.1,150,0
16,150,0,6.2,7.4,150,0
17,150,0,5.2,6.2,150,0
18,149,0,5.1,5.9,149,0
19,151,0,5.4,6.8,151,0
20,150,0,5.7,5.8,150,0
21,150,0,5.6,5.7,150,0
22,150,0,11.5,14.7,150,0
23,150,0,5.7,6.0,150,0
24,150,0,5.5,6.2,150,0
25,150,0,34.2,43.0,150,0
26,150,0,4.1,4.4,150,0
27,149,0,5.9,6.1,149,0
28,136,0,7.4,8.0,136,0
29,164,0,714.7,777.3,75,89
30,151,0,8.4,20.8,75,76
31,149,0,32.0,41.6,74,75
32,151,0,12.8,15.2,76,75
33,150,0,5.6,5.8,75,75
34,150,0,5.4,5.5,75,75
35,150,0,10.5,12.2,75,75
36,150,0,5.7,6.5,75,75
37,150,0,5.5,5.9,75,75
38,150,0,5.4,6.6,75,75
39,150,0,6.4,6.5,75,75
40,150,0,5.7,6.2,75,75
41,149,0,5.2,5.5,74,75
42,150,0,26.9,29.4,75,75
43,151,0,6.9,7.1,76,75
44,150,0,17.8,18.8,75,75
second,ok,errors,p99_ms,max_ms,33ea33bfe1fd,ef8f943d313b
0,151,0,13.2,16.3,76,75
1,150,0,4.8,6.2,75,75
2,150,0,5.2,5.5,75,75
3,150,0,7.9,10.4,75,75
4,150,0,6.3,7.3,75,75
5,150,0,8.1,8.9,75,75
6,150,0,6.0,6.1,75,75
7,150,0,4.6,4.9,75,75
8,150,0,4.2,4.4,75,75
9,150,0,5.1,6.0,75,75
10,150,0,13.5,13.6,77,73
11,68,0,10.1,10.1,68,0
12,146,0,1006.5,1006.6,146,0
13,213,0,1012.8,1013.9,213,0
14,150,0,7.0,7.6,150,0
15,150,0,4.5,4.5,150,0
16,150,0,4.3,8.0,150,0
17,150,0,4.7,7.5,150,0
18,150,0,4.7,5.4,150,0
19,150,0,6.0,6.3,150,0
20,150,0,5.6,5.8,150,0
21,150,0,6.2,6.5,150,0
22,150,0,6.1,6.2,150,0
23,150,0,11.8,24.3,150,0
24,150,0,7.8,14.1,150,0
25,150,0,5.3,6.8,150,0
26,150,0,4.2,5.5,150,0
27,150,0,5.3,5.7,150,0
28,150,0,7.0,11.0,150,0
29,145,0,546.0,550.9,100,45
30,155,0,135.4,179.9,75,80
31,128,0,53.6,57.2,64,64
32,89,0,926.0,926.0,69,20
33,218,0,1266.2,1293.6,84,134
34,150,0,6.1,7.9,75,75
35,150,0,6.8,7.7,75,75
36,150,0,8.0,10.8,75,75
37,150,0,29.3,34.7,75,75
38,150,0,8.0,8.9,75,75
39,150,0,5.2,5.4,75,75
40,150,0,4.9,6.1,75,75
41,150,0,6.6,7.0,75,75
42,150,0,5.7,6.2,75,75
43,150,0,9.2,15.0,75,75
44,150,0,7.0,8.1,75,75
1 second ok errors p99_ms max_ms 4fa49e9e1a53 33ea33bfe1fd 7b89cf61597b ef8f943d313b
2 0 151 0 11.9 13.2 12.3 16.3 75 76 76 75
3 1 149 150 0 5.9 4.8 6.7 6.2 75 74 75
4 2 150 0 9.8 5.2 10.5 5.5 75 75 75
5 3 150 0 6.4 7.9 7.3 10.4 75 75 75
6 4 150 0 7.0 6.3 7.9 7.3 75 75 75
7 5 151 150 0 5.8 8.1 7.8 8.9 75 76 75
8 6 150 0 3.9 6.0 7.1 6.1 75 75 75
9 7 149 150 0 6.2 4.6 6.5 4.9 75 74 75
10 8 150 0 6.2 4.2 6.4 4.4 75 75 75
11 9 151 150 0 6.1 5.1 7.3 6.0 75 76 75
12 10 97 150 0 7.6 13.5 7.6 13.6 77 20 73
13 11 104 68 0 1007.5 10.1 1009.4 10.1 104 68 0 0
14 12 224 146 0 1006.6 1006.5 1011.5 1006.6 224 146 0 0
15 13 150 213 0 7.1 1012.8 15.8 1013.9 150 213 0 0
16 14 150 0 8.9 7.0 22.4 7.6 150 0 0
17 15 150 0 4.3 4.5 5.1 4.5 150 0 0
18 16 150 0 6.2 4.3 7.4 8.0 150 0 0
19 17 150 0 5.2 4.7 6.2 7.5 150 0 0
20 18 149 150 0 5.1 4.7 5.9 5.4 149 150 0 0
21 19 151 150 0 5.4 6.0 6.8 6.3 151 150 0 0
22 20 150 0 5.7 5.6 5.8 150 0 0
23 21 150 0 5.6 6.2 5.7 6.5 150 0 0
24 22 150 0 11.5 6.1 14.7 6.2 150 0 0
25 23 150 0 5.7 11.8 6.0 24.3 150 0 0
26 24 150 0 5.5 7.8 6.2 14.1 150 0 0
27 25 150 0 34.2 5.3 43.0 6.8 150 0 0
28 26 150 0 4.1 4.2 4.4 5.5 150 0 0
29 27 149 150 0 5.9 5.3 6.1 5.7 149 150 0 0
30 28 136 150 0 7.4 7.0 8.0 11.0 136 150 0 0
31 29 164 145 0 714.7 546.0 777.3 550.9 75 100 89 45
32 30 151 155 0 8.4 135.4 20.8 179.9 75 76 80
33 31 149 128 0 32.0 53.6 41.6 57.2 74 64 75 64
34 32 151 89 0 12.8 926.0 15.2 926.0 76 69 75 20
35 33 150 218 0 5.6 1266.2 5.8 1293.6 75 84 75 134
36 34 150 0 5.4 6.1 5.5 7.9 75 75 75
37 35 150 0 10.5 6.8 12.2 7.7 75 75 75
38 36 150 0 5.7 8.0 6.5 10.8 75 75 75
39 37 150 0 5.5 29.3 5.9 34.7 75 75 75
40 38 150 0 5.4 8.0 6.6 8.9 75 75 75
41 39 150 0 6.4 5.2 6.5 5.4 75 75 75
42 40 150 0 5.7 4.9 6.2 6.1 75 75 75
43 41 149 150 0 5.2 6.6 5.5 7.0 74 75 75 75
44 42 150 0 26.9 5.7 29.4 6.2 75 75 75
45 43 151 150 0 6.9 9.2 7.1 15.0 76 75 75 75
46 44 150 0 17.8 7.0 18.8 8.1 75 75 75
+18 -18
View File
@@ -1,26 +1,26 @@
{
"requests": 6726,
"ok": 6726,
"requests": 6713,
"ok": 6713,
"errors": 0,
"error_codes": {},
"ok_rps": 149.5,
"p50_ms": 1.7,
"p95_ms": 5.9,
"p99_ms": 1003.5,
"max_ms": 1011.5,
"ok_rps": 149.2,
"p50_ms": 2.0,
"p95_ms": 171.4,
"p99_ms": 1005.3,
"max_ms": 1293.6,
"requests_per_instance": {
"7b89cf61597b": 1986,
"4fa49e9e1a53": 4740
"33ea33bfe1fd": 4722,
"ef8f943d313b": 1991
},
"event_load_start_s": 0.22,
"event_fault_s": 10.26,
"event_fault_done_s": 10.41,
"event_restore_begin_s": 25.27,
"event_restore_healthy_s": 27.78,
"event_load_start_s": 0.89,
"event_fault_s": 10.94,
"event_fault_done_s": 11.13,
"event_restore_begin_s": 25.93,
"event_restore_healthy_s": 28.38,
"errors_after_fault": 0,
"last_error_after_fault_s": null,
"target_last_response_after_fault_s": 0.01,
"restored_replica_first_response_after_start_s": 3.85,
"lb_marked_down_after_fault_s": 1.74,
"lb_marked_up_after_start_s": 3.52
"target_last_response_after_fault_s": 0.02,
"restored_replica_first_response_after_start_s": 3.95,
"lb_marked_down_after_fault_s": 1.89,
"lb_marked_up_after_start_s": 3.39
}