Commit 23068b4
authored
Add memory metrics and refact memory allocation (apache#14710)
* fix memory concurrency problem
* add memory related metric name and tag
* add memory threshold code
* add total
* add part of write metrics
* remove hard string code
* fix error code(set storage engine size to schema engine
* degrade metric level
* fix error level
* fix error type and add datanode device path cache
* finish write part
* fix format
* fix name bug
* move buffer pool to memtable
* fix comment
* optimize the code
* add Query Memory Threshold(level=2)
* add Schema Memory Threshold(level=2)
* add Schema Memory Threshold(update comment)
* move Consensus memory threshold
* move Consensus memory threshold
* split class to optimize code
* Add Off Heap Memory Total
* change metric name
* add Metric memory_actual_size
* init first version of memory manager and memory block
* add IIoTDBMemoryBlock
* fix template
* rollback
* rollback 2
* Rename IoTDBRuntimeOutOfMemoryException to IoTDBMemoryException
* Rename IoTDBRuntimeOutOfMemoryException to IoTDBMemoryException
* add version2 memory
* add name of MemoryManager and MemoryBlock
* add global memory manager
* add search memory manager
* add default method to get memory manager
* modify storage engine
* fix
* update
* update
* fix init problem
* fix init problem
* TimePartitionInfo
* Add TimePartitionInfo
* Add Consensus Memory Manager
* Add Pipe Memory Manager
* Add Schema Memory Manager
* add query memory manager
* fix operators memory
* move now into memory manager
* add wal buffer queue size metrics
* remove TestOnly Annotation
* add comment and optimize code
* split off heap
* bug fix
* move compaction into block
* add metric of actual size
* fix tag name
* fix level
* add actural size of memory of memtable
* have a try
* test
* test
* return
* Revert "return"
This reverts commit 16fd24e.
* Revert "test"
This reverts commit 3642591.
* Revert "test"
This reverts commit 1a54125.
* Revert "have a try"
This reverts commit f1d3e35.
* Revert "add actural size of memory of memtable"
This reverts commit 9f974e9.
* add storage level=4
* fix wait-notify
* fix wait-notify and statistic
* spotless
* init IT test
* avoid notify
* Fix bug in Memory Manager and Memory Block
* Add License
* Empty-Commit
* rollback message in PipeMemoryManager
* fix
* Add some log
* fix reclaim bug
* avoid multi-create
* remove debug log
* fix typo
* Modify TimePartitionMemoryController
* Modify BloomFilterCache Memory Block
* Modify ChunkCache Memory Block
* Modify TimeSeriesMetadataCache Memory Block
* Modify Operators Memory Block
* Modify DataExchange Memory Block
* spotless
* use allocate method
* Modify TimeIndex Memory Block
* Update StorageEngineMemoryMetrics
* Modify Gauge to AutoGauge
* Fix error metric name
* Update StreamEngineMetrics
* Add Consensus Memory Block
* Add Schema Memory Block
* Fix NPE in consensus test
* avoid same name memory block
* Fix return bug in clearAll
* Upgrade Metric Level
* Fix info log
* Fix info log
* Fix concurrent problem
* Fix conflict
* Spotless
* Fix method name
* Fix bug around remove of memory block
* solve all conflict
* add simple auto
* fix format
* Fix start
* Add Log
* Add Memory Service
* Change higher and lower
* Add Config
* Add test log
* Add test log
* Add test log
* Fix auto
* Change higher and lower
* Change higher and lower
* Change higher and lower and add check
* Optimize judge
* Fix pipe bug when merge
* move some manager to memory config
* move some manager to memory config(finish)
* update format
* Fix Agent
* Fix IT
* Fix Symbol
* Fix Format
* Add MemoryBlock UT Test
* Add MemoryBlock UT Test
* Update Auto Logic
* Add Score Method
* Move Logic
* Remove to DataNodeMemoryConfig
* Add Config
* Move into IoTDBDescriptor
* Add RAT
* Change Name
* Add Import
* Add Import
* Add Import
* Fix Format
* Fix Format
* Fix Format
* Fix IT/UT
* Fix Some
* Fix Before
* Add ratio check
* Reset
* Reset and remove
* Reset and remove
* Reset and remove
* Remove
* Rename forceAllocate to exactAllocate
* Rename registerMemoryBlock to getOrCreate
* Update getOrCreateMemoryManager
* Update getOrCreateMemoryManager
* Update Memory Manager
* Fix Log1 parent 809ecd4 commit 23068b4
File tree
74 files changed
+3177
-1439
lines changed- iotdb-core
- consensus/src/main/java/org/apache/iotdb/consensus
- config
- iot
- logdispatcher
- datanode/src
- main/java/org/apache/iotdb/db
- conf
- consensus
- pipe/resource/memory
- queryengine
- execution
- exchange
- sink
- source
- memory
- schedule
- plan
- analyze/cache
- partition
- schema
- planner
- relational/metadata/fetcher/cache
- schemaengine
- metric
- rescon
- schemaregion/mtree/impl/pbtree/memcontrol
- service/metrics
- memory
- storageengine
- buffer
- dataregion
- wal/utils
- load/memory
- rescon/memory
- test/java/org/apache/iotdb/db
- queryengine
- execution
- exchange
- memory
- plan/relational/metadata/fetcher/cache
- storageengine
- dataregion/compaction
- cross
- utils
- rescon/memory
- utils
- datastructure
- node-commons/src
- main/java/org/apache/iotdb/commons
- concurrent
- conf
- memory
- service
- test/java/org/apache/iotdb/commons/memory
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
74 files changed
+3177
-1439
lines changedLines changed: 17 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
249 | | - | |
250 | | - | |
| 251 | + | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| |||
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
265 | | - | |
| 267 | + | |
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
| |||
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
279 | | - | |
280 | | - | |
| 281 | + | |
| 282 | + | |
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
| |||
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
328 | | - | |
329 | | - | |
| 330 | + | |
| 331 | + | |
330 | 332 | | |
331 | 333 | | |
332 | | - | |
333 | | - | |
| 334 | + | |
| 335 | + | |
334 | 336 | | |
335 | 337 | | |
336 | 338 | | |
| |||
355 | 357 | | |
356 | 358 | | |
357 | 359 | | |
358 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
359 | 363 | | |
360 | 364 | | |
361 | 365 | | |
| |||
416 | 420 | | |
417 | 421 | | |
418 | 422 | | |
419 | | - | |
420 | | - | |
| 423 | + | |
| 424 | + | |
421 | 425 | | |
422 | 426 | | |
423 | 427 | | |
| |||
445 | 449 | | |
446 | 450 | | |
447 | 451 | | |
448 | | - | |
| 452 | + | |
449 | 453 | | |
450 | 454 | | |
451 | 455 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
| 128 | + | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
Lines changed: 16 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
67 | 49 | | |
68 | 50 | | |
69 | 51 | | |
70 | 52 | | |
71 | 53 | | |
72 | 54 | | |
73 | | - | |
| 55 | + | |
74 | 56 | | |
75 | 57 | | |
76 | 58 | | |
77 | | - | |
| 59 | + | |
78 | 60 | | |
79 | 61 | | |
80 | 62 | | |
| |||
87 | 69 | | |
88 | 70 | | |
89 | 71 | | |
90 | | - | |
91 | | - | |
92 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
93 | 75 | | |
94 | 76 | | |
95 | 77 | | |
96 | | - | |
| 78 | + | |
97 | 79 | | |
98 | 80 | | |
99 | 81 | | |
| |||
0 commit comments