public class RocksDBMemoryControllerUtils extends Object
Cache
and WriteBufferManager
which used to control total memory usage of RocksDB.Constructor and Description |
---|
RocksDBMemoryControllerUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.flink.contrib.streaming.state.RocksDBSharedResources |
allocateRocksDBSharedResources(long totalMemorySize,
double writeBufferRatio,
double highPriorityPoolRatio)
Allocate memory controllable RocksDB shared resources.
|
public static org.apache.flink.contrib.streaming.state.RocksDBSharedResources allocateRocksDBSharedResources(long totalMemorySize, double writeBufferRatio, double highPriorityPoolRatio)
totalMemorySize
- The total memory limit size.writeBufferRatio
- The ratio of total memory which is occupied by write buffer manager.highPriorityPoolRatio
- The high priority pool ratio of cache.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.