Commit e6daf23
Yuriy Bezsonov
refactor(perf-platform): drop version diff and ratio exporter
Remove the canary-regression detection path entirely. The diff lane,
ratio gauge, and version-aware webhook handling fought the timing
constraints of a workshop session — JIT warm-up on a freshly started
canary produces ±10pp deltas that drown anything else, and there is
no way to wait it out in 90 minutes. Replace with a four-lane
single-version analysis that runs equally well at zero load, light
load, and saturating load.
Analyzer
- Drop ProfileRatioExporter and PyroscopeVersionService entirely.
No more in-process Prometheus gauge, no more version-pair selection.
- PyroscopeTool keeps a single @tool method, topFunctions(service,
profileType, from, to, limit). The diff() tool method, totalsForVersion
helper, and total-time delta formatter are gone.
- AnalysisService runs four parallel lanes (CPU top, wall top, JFR,
thread dump). AnalysisContext drops the diff and version fields.
Window stays 5 minutes, single static value at the top of the file.
- AiService prompt reframed around two-lens correlation rather than
diffs. System prompt: CPU is what is computing, wall is what is
waiting; cross-check both. The application-frame-vs-low-level-frame
guidance carries over.
- AnalyzeController.toRequest still recovers workload + platform from
the {service_name}-{eks|ecs} convention so any Grafana alert label
pattern carrying that name works without code changes.
Collector
- AsyncProfilerAttach javadoc rewritten to match the implementation:
CPU + wall via -e cpu --wall 10ms, JFR rotation via --loop 15s,
Pyroscope splits the JFR file into process_cpu and wall profile
types automatically. No code change to the attach itself; the
previous wall-only experiment has been reverted.
Verified end-to-end on the live cluster: stripped analyzer rebuilt,
redeployed, and a single on-demand /api/v1/analyze against the
unicorn-store-spring pod produced a 60-second report that correctly
identified the latent blocking .get() in UnicornService.publishUnicorn-
Event with a source-code citation.1 parent ef95d7c commit e6daf23
7 files changed
Lines changed: 76 additions & 642 deletions
File tree
- apps
- perf-analyzer/src/main/java/com/example/perf/analyzer
- perf-collector/src/main/java/com/example/perf/collector
Lines changed: 24 additions & 83 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
64 | 56 | | |
65 | 57 | | |
66 | 58 | | |
67 | | - | |
68 | 59 | | |
69 | 60 | | |
70 | 61 | | |
71 | 62 | | |
72 | 63 | | |
73 | 64 | | |
74 | 65 | | |
75 | | - | |
76 | 66 | | |
77 | 67 | | |
78 | 68 | | |
| |||
113 | 103 | | |
114 | 104 | | |
115 | 105 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 106 | | |
123 | 107 | | |
124 | 108 | | |
125 | 109 | | |
126 | 110 | | |
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 | 111 | | |
168 | | - | |
169 | | - | |
| 112 | + | |
170 | 113 | | |
171 | | - | |
172 | | - | |
| 114 | + | |
| 115 | + | |
173 | 116 | | |
174 | 117 | | |
175 | 118 | | |
| |||
203 | 146 | | |
204 | 147 | | |
205 | 148 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
212 | 153 | | |
213 | 154 | | |
214 | 155 | | |
| |||
Lines changed: 16 additions & 54 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
57 | | - | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
71 | | - | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | | - | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | 135 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | 136 | | |
| 137 | + | |
142 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | 146 | | |
153 | 147 | | |
154 | 148 | | |
| |||
158 | 152 | | |
159 | 153 | | |
160 | 154 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | 155 | | |
182 | 156 | | |
183 | 157 | | |
184 | 158 | | |
185 | | - | |
186 | | - | |
187 | 159 | | |
188 | 160 | | |
189 | 161 | | |
| |||
193 | 165 | | |
194 | 166 | | |
195 | 167 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 168 | | |
201 | 169 | | |
202 | 170 | | |
203 | 171 | | |
204 | | - | |
205 | | - | |
206 | 172 | | |
207 | 173 | | |
208 | 174 | | |
| |||
449 | 415 | | |
450 | 416 | | |
451 | 417 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
460 | 422 | | |
461 | 423 | | |
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
126 | | - | |
127 | | - | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | | - | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
0 commit comments