Commit 4823a33
Add state transition latency metrics for Helix participant (#3283)
* Add state transition latency metrics for Helix participant
Add metrics to track BOOTSTRAP→STANDBY duration, OFFLINE→BOOTSTRAP duration,
bootstrap failures, and max time-in-BOOTSTRAP. These fill a gap where no
latency instrumentation exists today (Helix's native StateTransitionStatMonitor
is denylisted from InGraph due to high cardinality).
New metrics:
- bootstrapToStandbyDurationMs: histogram of successful bootstrap durations
- offlineToBootstrapDurationMs: histogram of offline→bootstrap transition time
- bootstrapFailureCount: counter of partitions that failed during bootstrap
- maxTimeInBootstrapMs: gauge of the longest currently-bootstrapping partition
Motivation: INC-15835 (Helix cascading OOM) showed that we lacked visibility
into how long partitions spend in BOOTSTRAP during rebalance storms.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* Remove 4h stale bootstrap eviction — map bounded by partition count per instance (~1.2k max)
---------
Co-authored-by: Cris Liao <crliao@linkedin.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 65a2679 commit 4823a33
2 files changed
Lines changed: 78 additions & 0 deletions
File tree
- ambry-clustermap/src/main/java/com/github/ambry/clustermap
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
| 921 | + | |
921 | 922 | | |
922 | 923 | | |
923 | 924 | | |
| |||
963 | 964 | | |
964 | 965 | | |
965 | 966 | | |
| 967 | + | |
966 | 968 | | |
967 | 969 | | |
968 | 970 | | |
969 | 971 | | |
| 972 | + | |
| 973 | + | |
970 | 974 | | |
971 | 975 | | |
972 | 976 | | |
| |||
992 | 996 | | |
993 | 997 | | |
994 | 998 | | |
| 999 | + | |
995 | 1000 | | |
996 | 1001 | | |
997 | 1002 | | |
998 | 1003 | | |
| 1004 | + | |
999 | 1005 | | |
1000 | 1006 | | |
1001 | 1007 | | |
| 1008 | + | |
1002 | 1009 | | |
1003 | 1010 | | |
1004 | 1011 | | |
| |||
Lines changed: 71 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
41 | 53 | | |
42 | 54 | | |
43 | 55 | | |
| |||
72 | 84 | | |
73 | 85 | | |
74 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
75 | 98 | | |
76 | 99 | | |
77 | 100 | | |
| |||
95 | 118 | | |
96 | 119 | | |
97 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
98 | 169 | | |
99 | 170 | | |
100 | 171 | | |
| |||
0 commit comments