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": "stop", "target": "api-1", "target_instance": "7b89cf61597b", "restored_instance": "7b89cf61597b",
"load_start": 1792755143191, "fault": 1792755153238, "fault_done": 1792755158479, "restore_begin": 1792755168242, "restore_healthy": 1792755170683}
{"mode": "stop", "target": "api-1", "target_instance": "ef8f943d313b", "restored_instance": "ef8f943d313b",
"load_start": 1792781831378, "fault": 1792781841419, "fault_done": 1792781845703, "restore_begin": 1792781856431, "restore_healthy": 1792781858936}
+9 -9
View File
@@ -3,23 +3,23 @@
█ TOTAL RESULTS
CUSTOM
served_by......................: 6750 143.513142/s
served_by......................: 6751 146.192761/s
HTTP
http_req_duration..............: avg=5.21ms med=2.03ms p(95)=5.28ms p(99)=66.29ms max=608.68ms
{ expected_response:true }...: avg=5.21ms med=2.03ms p(95)=5.28ms p(99)=66.29ms max=608.68ms
http_req_failed................: 0.00% 0 out of 6771
http_reqs......................: 6771 143.959628/s
http_req_duration..............: avg=4.7ms med=1.97ms p(95)=5.34ms p(99)=43.67ms max=610.04ms
{ expected_response:true }...: avg=4.7ms med=1.97ms p(95)=5.34ms p(99)=43.67ms max=610.04ms
http_req_failed................: 0.00% 0 out of 6772
http_reqs......................: 6772 146.647516/s
EXECUTION
iteration_duration.............: avg=5.13ms med=2.21ms p(95)=5.47ms p(99)=48.43ms max=608.87ms
iterations.....................: 6750 143.513142/s
vus............................: 2 min=0 max=26
iteration_duration.............: avg=4.75ms med=2.17ms p(95)=5.5ms p(99)=23.83ms max=610.26ms
iterations.....................: 6751 146.192761/s
vus............................: 1 min=0 max=22
vus_max........................: 50 min=50 max=50
NETWORK
data_received..................: 2.6 MB 56 kB/s
data_sent......................: 1.4 MB 29 kB/s
data_sent......................: 1.3 MB 29 kB/s
@@ -1,46 +1,46 @@
second,ok,errors,p99_ms,max_ms,4fa49e9e1a53,7b89cf61597b
0,153,0,205.2,220.8,77,76
1,150,0,7.0,7.7,75,75
2,150,0,7.3,16.6,75,75
3,150,0,5.6,6.1,75,75
4,150,0,6.3,6.6,75,75
5,150,0,30.2,41.5,75,75
6,150,0,7.4,7.8,75,75
7,150,0,7.0,7.3,75,75
8,150,0,58.5,73.3,75,75
9,150,0,5.7,7.0,75,75
10,150,0,5.7,7.6,75,75
11,150,0,5.8,6.1,75,75
12,150,0,25.5,29.9,134,16
13,150,0,5.8,6.6,150,0
14,150,0,4.9,5.5,150,0
15,150,0,4.6,5.3,150,0
16,150,0,11.3,14.1,150,0
17,150,0,4.4,5.2,150,0
18,150,0,5.0,6.8,150,0
19,150,0,6.2,7.2,150,0
20,150,0,6.6,6.9,150,0
21,150,0,6.7,8.5,150,0
22,151,0,7.8,12.3,151,0
23,150,0,5.0,11.3,150,0
24,149,0,20.5,27.7,149,0
25,150,0,5.7,6.3,150,0
26,150,0,7.8,8.4,150,0
27,150,0,6.6,10.4,150,0
28,151,0,4.4,8.2,151,0
29,120,0,543.2,554.2,103,17
30,180,0,602.9,608.7,75,105
31,149,0,5.9,8.8,74,75
32,150,0,18.6,31.4,75,75
33,150,0,5.2,5.6,75,75
34,150,0,5.9,6.0,75,75
35,150,0,7.6,9.4,75,75
36,150,0,4.6,4.7,75,75
37,150,0,4.0,5.1,75,75
38,150,0,5.5,7.1,75,75
39,151,0,4.9,5.0,76,75
40,149,0,7.3,7.6,74,75
41,150,0,7.4,16.1,75,75
42,150,0,6.8,13.7,75,75
43,150,0,5.7,9.3,75,75
44,147,0,45.7,53.5,74,73
second,ok,errors,p99_ms,max_ms,33ea33bfe1fd,ef8f943d313b
0,152,0,5.8,12.1,76,76
1,150,0,8.8,19.5,75,75
2,150,0,4.7,4.9,75,75
3,150,0,18.4,19.9,75,75
4,150,0,5.2,5.5,75,75
5,150,0,4.7,4.8,75,75
6,149,0,5.0,5.6,74,75
7,151,0,6.3,6.4,76,75
8,150,0,13.9,14.1,75,75
9,150,0,10.2,10.8,75,75
10,150,0,6.7,7.9,75,75
11,150,0,4.1,4.6,75,75
12,150,0,4.7,6.2,112,38
13,150,0,14.8,18.6,150,0
14,150,0,5.5,6.8,150,0
15,150,0,5.3,7.5,150,0
16,150,0,5.2,5.4,150,0
17,150,0,4.4,5.0,150,0
18,150,0,4.9,5.3,150,0
19,149,0,5.6,5.8,149,0
20,151,0,5.2,6.1,151,0
21,150,0,4.4,6.5,150,0
22,150,0,6.2,7.0,150,0
23,150,0,16.9,17.2,150,0
24,150,0,4.8,9.1,150,0
25,150,0,5.2,6.1,150,0
26,150,0,7.4,16.9,150,0
27,150,0,4.8,5.6,150,0
28,150,0,4.8,4.9,150,0
29,115,0,6.0,6.2,115,0
30,185,0,588.5,610.0,75,110
31,150,0,7.2,8.2,75,75
32,150,0,8.4,11.9,75,75
33,150,0,26.3,30.7,75,75
34,150,0,6.9,7.3,75,75
35,150,0,7.0,8.7,75,75
36,150,0,5.2,5.9,75,75
37,150,0,5.4,6.5,75,75
38,150,0,7.9,11.6,75,75
39,150,0,4.9,5.1,75,75
40,149,0,6.5,7.2,74,75
41,151,0,6.4,15.9,76,75
42,150,0,11.7,14.7,75,75
43,147,0,20.3,28.0,73,74
44,152,0,26.7,42.2,76,76
1 second ok errors p99_ms max_ms 33ea33bfe1fd 7b89cf61597b 4fa49e9e1a53 ef8f943d313b
2 0 153 152 0 205.2 5.8 220.8 12.1 76 76 77 76
3 1 150 0 7.0 8.8 7.7 19.5 75 75 75
4 2 150 0 7.3 4.7 16.6 4.9 75 75 75
5 3 150 0 5.6 18.4 6.1 19.9 75 75 75
6 4 150 0 6.3 5.2 6.6 5.5 75 75 75
7 5 150 0 30.2 4.7 41.5 4.8 75 75 75
8 6 150 149 0 7.4 5.0 7.8 5.6 74 75 75
9 7 150 151 0 7.0 6.3 7.3 6.4 76 75 75
10 8 150 0 58.5 13.9 73.3 14.1 75 75 75
11 9 150 0 5.7 10.2 7.0 10.8 75 75 75
12 10 150 0 5.7 6.7 7.6 7.9 75 75 75
13 11 150 0 5.8 4.1 6.1 4.6 75 75 75
14 12 150 0 25.5 4.7 29.9 6.2 112 16 134 38
15 13 150 0 5.8 14.8 6.6 18.6 150 0 150 0
16 14 150 0 4.9 5.5 5.5 6.8 150 0 150 0
17 15 150 0 4.6 5.3 5.3 7.5 150 0 150 0
18 16 150 0 11.3 5.2 14.1 5.4 150 0 150 0
19 17 150 0 4.4 5.2 5.0 150 0 150 0
20 18 150 0 5.0 4.9 6.8 5.3 150 0 150 0
21 19 150 149 0 6.2 5.6 7.2 5.8 149 0 150 0
22 20 150 151 0 6.6 5.2 6.9 6.1 151 0 150 0
23 21 150 0 6.7 4.4 8.5 6.5 150 0 150 0
24 22 151 150 0 7.8 6.2 12.3 7.0 150 0 151 0
25 23 150 0 5.0 16.9 11.3 17.2 150 0 150 0
26 24 149 150 0 20.5 4.8 27.7 9.1 150 0 149 0
27 25 150 0 5.7 5.2 6.3 6.1 150 0 150 0
28 26 150 0 7.8 7.4 8.4 16.9 150 0 150 0
29 27 150 0 6.6 4.8 10.4 5.6 150 0 150 0
30 28 151 150 0 4.4 4.8 8.2 4.9 150 0 151 0
31 29 120 115 0 543.2 6.0 554.2 6.2 115 17 103 0
32 30 180 185 0 602.9 588.5 608.7 610.0 75 105 75 110
33 31 149 150 0 5.9 7.2 8.8 8.2 75 75 74 75
34 32 150 0 18.6 8.4 31.4 11.9 75 75 75
35 33 150 0 5.2 26.3 5.6 30.7 75 75 75
36 34 150 0 5.9 6.9 6.0 7.3 75 75 75
37 35 150 0 7.6 7.0 9.4 8.7 75 75 75
38 36 150 0 4.6 5.2 4.7 5.9 75 75 75
39 37 150 0 4.0 5.4 5.1 6.5 75 75 75
40 38 150 0 5.5 7.9 7.1 11.6 75 75 75
41 39 151 150 0 4.9 5.0 5.1 75 75 76 75
42 40 149 0 7.3 6.5 7.6 7.2 74 75 74 75
43 41 150 151 0 7.4 6.4 16.1 15.9 76 75 75
44 42 150 0 6.8 11.7 13.7 14.7 75 75 75
45 43 150 147 0 5.7 20.3 9.3 28.0 73 75 75 74
46 44 147 152 0 45.7 26.7 53.5 42.2 76 73 74 76
+15 -15
View File
@@ -1,26 +1,26 @@
{
"requests": 6750,
"ok": 6750,
"requests": 6751,
"ok": 6751,
"errors": 0,
"error_codes": {},
"ok_rps": 150.0,
"p50_ms": 2.0,
"p95_ms": 5.2,
"p99_ms": 48.3,
"max_ms": 608.7,
"p99_ms": 24.0,
"max_ms": 610.0,
"requests_per_instance": {
"7b89cf61597b": 2087,
"4fa49e9e1a53": 4663
"33ea33bfe1fd": 4652,
"ef8f943d313b": 2099
},
"event_load_start_s": 1.08,
"event_fault_s": 11.13,
"event_fault_done_s": 16.37,
"event_restore_begin_s": 26.13,
"event_restore_healthy_s": 28.57,
"event_load_start_s": 0.86,
"event_fault_s": 10.9,
"event_fault_done_s": 15.18,
"event_restore_begin_s": 25.91,
"event_restore_healthy_s": 28.41,
"errors_after_fault": 0,
"last_error_after_fault_s": null,
"target_last_response_after_fault_s": 1.07,
"restored_replica_first_response_after_start_s": 3.8,
"lb_marked_down_after_fault_s": 1.08,
"lb_marked_up_after_start_s": 3.24
"target_last_response_after_fault_s": 1.6,
"restored_replica_first_response_after_start_s": 4.11,
"lb_marked_down_after_fault_s": 1.6,
"lb_marked_up_after_start_s": 3.62
}