Repository navigation
Commit d4bd070
committed
Drop the unreachable arms of the busy-page backoff
Nothing on the read path sends Retry-After: the API answers with a bare
FastAPI HTTPException and the ingress rate limiter adds no headers either, so
that branch was shaping a delay no server asks for. The ceiling was unreachable
too — four doublings from half a second top out at four, jitter included.
What is left is the backoff itself. Name the jitter fraction rather than
spelling the band inline, and cover the growth the constants describe. The
give-up test now exhausts the budget on a later page, so it also pins that an
already delivered chunk stands.
Signed-off-by: Honglin Cao <hocao@nvidia.com>1 parent 0fc124d commit d4bd070
2 files changed
Lines changed: 44 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 57 | + | |
| 58 | + | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
| |||
457 | 454 | | |
458 | 455 | | |
459 | 456 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
471 | 467 | | |
472 | 468 | | |
473 | 469 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
1031 | 1033 | | |
1032 | 1034 | | |
1033 | 1035 | | |
1034 | | - | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
1035 | 1039 | | |
1036 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1037 | 1044 | | |
1038 | 1045 | | |
1039 | | - | |
| 1046 | + | |
1040 | 1047 | | |
1041 | | - | |
| 1048 | + | |
1042 | 1049 | | |
1043 | 1050 | | |
1044 | 1051 | | |
1045 | | - | |
| 1052 | + | |
1046 | 1053 | | |
1047 | | - | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1048 | 1057 | | |
1049 | 1058 | | |
1050 | 1059 | | |
1051 | | - | |
1052 | | - | |
| 1060 | + | |
1053 | 1061 | | |
1054 | | - | |
1055 | | - | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1056 | 1067 | | |
1057 | 1068 | | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
| 1069 | + | |
1061 | 1070 | | |
1062 | | - | |
| 1071 | + | |
1063 | 1072 | | |
1064 | 1073 | | |
1065 | 1074 | | |
1066 | | - | |
| 1075 | + | |
| 1076 | + | |
1067 | 1077 | | |
1068 | | - | |
1069 | | - | |
| 1078 | + | |
| 1079 | + | |
1070 | 1080 | | |
1071 | 1081 | | |
1072 | 1082 | | |
| |||
0 commit comments