Commit cf2bcca
Native allocator: dynamic settings, query/datafusion pools, plugin nodeStats (opensearch-project#21732)
* Make pool min/max settings dynamic and grouped-validate cross-setting
invariants on every cluster-state update (sum of pool mins <= root,
per-pool min <= max). FLIGHT_MIN/INGEST_MIN defaults are 0L (the prior
Long.MAX_VALUE defaults caused the new validator to reject any non-MAX
root). setPoolMin now updates the live BufferAllocator.setLimit so the
Dynamic property has observable effect even when the rebalancer is off.
* Derive ROOT_LIMIT_SETTING default from the AC node-native-memory budget
(limit minus buffer-percent) so the framework respects the same budget
AC throttles on, with a Long.MAX_VALUE fallback when AC is unconfigured.
* Add QUERY pool alongside FLIGHT and INGEST. Pools init at min when the
rebalancer is enabled; otherwise at max so non-rebalanced nodes can
still allocate.
* Wire arrow-flight-rpc to the FLIGHT pool, parquet-data-format to the
INGEST pool, and analytics-engine to the QUERY pool via the framework's
allocator service. Hard-fail if the framework plugin is missing —
silently skipping the wire-up is the silent-misconfiguration class of
bug we want to prevent.
* Cleanup ad-hoc allocator fallbacks in parquet-data-format / analytics-engine
so all Arrow consumers go through the unified pool hierarchy.
* Rebalancer now distributes headroom across all pools (not only those with
current allocation > 0). Avoids the dead-pool corner case where a pool
with min=0 starts at limit=0, can never make a first allocation, and
never receives a bonus.
Signed-off-by: Gaurav Singh <snghsvn@amazon.com>1 parent 050f2bf commit cf2bcca
76 files changed
Lines changed: 2806 additions & 398 deletions
File tree
- libs/arrow-spi/src
- main/java/org/opensearch/arrow/spi
- test/java/org/opensearch/arrow/spi
- plugins
- arrow-base/src
- main/java/org/opensearch/arrow
- allocator
- memory
- transport
- test/java/org/opensearch/arrow/allocator
- arrow-flight-rpc
- src
- internalClusterTest/java/org/opensearch/arrow/flight
- main/java/org/opensearch/arrow/flight/transport
- test/java/org/opensearch/arrow/flight/transport
- examples/stream-transport-example/src/main/java/org/opensearch/example/stream
- sandbox
- plugins
- analytics-backend-datafusion
- src
- main/java/org/opensearch/be/datafusion
- nativelib
- test/java/org/opensearch/be/datafusion
- analytics-engine
- src/main/java/org/opensearch/analytics
- exec
- composite-engine/src/internalClusterTest/java/org/opensearch/composite
- parquet-data-format
- benchmarks
- src/main/java/org/opensearch/parquet/benchmark
- src
- main/java/org/opensearch/parquet
- engine
- memory
- vsr
- test/java/org/opensearch/parquet
- engine
- memory
- vsr
- writer
- qa/analytics-engine-coordinator
- server/src
- main/java/org/opensearch
- action/admin/cluster
- node/stats
- stats
- node
- resource/tracker
- plugins
- test/java/org/opensearch
- action/admin/cluster
- node/stats
- stats
- cluster
- node
- resource/tracker
- test/framework/src/main/java/org/opensearch
- cluster
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
Lines changed: 3 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 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
Lines changed: 97 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
0 commit comments