Interface RocksDBManualCompactionManager
- All Superinterfaces:
AutoCloseable
Manages compactions of small and disjoint RocksDB SST files that otherwise would not be merged to
reduce write amplification.
Such files are usually small and are inlined into the Checkpoint metadata. Which might lead to exceeding RPC message size on checkpoint ACK or recovery.
This class manages compactions of one or more Column Families of a single RocksDB instance.
Note that "manual" means that the compactions are requested manually (by Flink), but they are still executed by RocksDB.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.Loggerstatic final RocksDBManualCompactionManager -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()create(org.rocksdb.RocksDB db, RocksDBManualCompactionConfig settings, ExecutorService ioExecutor) voidvoidstart()
-
Field Details
-
LOG
static final org.slf4j.Logger LOG -
NO_OP
-
-
Method Details
-
create
static RocksDBManualCompactionManager create(org.rocksdb.RocksDB db, RocksDBManualCompactionConfig settings, ExecutorService ioExecutor) -
register
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
start
void start()
-