Interface RocksDBManualCompactionManager
-
- All Superinterfaces:
AutoCloseable
public interface RocksDBManualCompactionManager extends 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
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
static RocksDBManualCompactionManager
NO_OP
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
static RocksDBManualCompactionManager
create(org.rocksdb.RocksDB db, RocksDBManualCompactionConfig settings, ExecutorService ioExecutor)
void
register(RocksDBKeyedStateBackend.RocksDbKvStateInfo stateInfo)
void
start()
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
-
NO_OP
static final RocksDBManualCompactionManager NO_OP
-
-
Method Detail
-
create
static RocksDBManualCompactionManager create(org.rocksdb.RocksDB db, RocksDBManualCompactionConfig settings, ExecutorService ioExecutor)
-
register
void register(RocksDBKeyedStateBackend.RocksDbKvStateInfo stateInfo)
-
close
void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
start
void start()
-
-