Commit 6105940
authored
Move native_allocator under native_memory; replace PluginNodeStats SPI with typed NodeStats field (opensearch-project#21820)
* Move native_allocator under native_memory; replace PluginNodeStats SPI
Consolidates Arrow native allocator stats under
nodes.<id>.native_memory.native_allocator (was a top-level sibling at
nodes.<id>.native_allocator) and replaces the experimental
PluginNodeStats SPI with a typed NativeAllocatorPoolStats field on
NodeStats.
Strips peak_bytes, child_count, and humanReadableField byte-string
duplicates from the allocator JSON. Pool and root blocks now expose
only allocated_bytes and limit_bytes.
Adds new metric: GET /_nodes/stats/native_allocator
Removes metric: GET /_nodes/stats/plugin_stats (no production consumer)
PluginNodeStats and Plugin.nodeStats() were @experimentalapi with one
production consumer (arrow-base) and an unreleased wire format
(Version.V_3_7_0). Replaced with a small ArrowAllocatorPlugin SPI in
libs/arrow-spi so server can inject the allocator into NodeService
without depending on the arrow-base plugin.
Signed-off-by: Gaurav Singh <snghsvn@amazon.com>1 parent 1878f4a commit 6105940
25 files changed
Lines changed: 543 additions & 593 deletions
File tree
- libs/arrow-spi/src/main/java/org/opensearch/arrow/spi
- plugins/arrow-base/src
- main/java/org/opensearch/arrow/allocator
- test/java/org/opensearch/arrow/allocator
- sandbox/libs/dataformat-native/src/test/java/org/opensearch/nativebridge/spi
- server/src
- main/java/org/opensearch
- action/admin/cluster/node/stats
- node
- plugins
- plugin/stats
- test/java/org/opensearch
- action/admin/cluster
- node/stats
- stats
- cluster
- node
- plugin/stats
- test/framework/src/main/java/org/opensearch/cluster
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
| |||
Lines changed: 11 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
255 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
256 | 265 | | |
257 | 266 | | |
258 | 267 | | |
| |||
347 | 356 | | |
348 | 357 | | |
349 | 358 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | 359 | | |
366 | 360 | | |
367 | 361 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
180 | 185 | | |
181 | 186 | | |
182 | 187 | | |
| |||
186 | 191 | | |
187 | 192 | | |
188 | 193 | | |
189 | | - | |
190 | | - | |
| 194 | + | |
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
| |||
Lines changed: 0 additions & 93 deletions
This file was deleted.
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
Lines changed: 0 additions & 66 deletions
This file was deleted.
0 commit comments