Package io.camunda.zeebe.db.impl.rocksdb
Class RocksDbConfiguration
java.lang.Object
io.camunda.zeebe.db.impl.rocksdb.RocksDbConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final longstatic final intstatic final booleanEnabling this feature gives a hint to the RocksDB compaction to compact based on virtual column family prefixes.static final booleanstatic final intstatic final booleanWARN: It is safe to disable wal as long as there is only one column family. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintlongintbooleanbooleanbooleansetColumnFamilyOptions(Properties columnFamilyOptions) setIoRateBytesPerSecond(int ioRateBytesPerSecond) setMaxOpenFiles(int maxOpenFiles) setMaxWriteBufferNumber(int maxWriteBufferNumber) setMemoryLimit(long memoryLimit) setMinWriteBufferNumberToMerge(int minWriteBufferNumberToMerge) setSstPartitioningEnabled(boolean sstPartitioningEnabled) setStatisticsEnabled(boolean statisticsEnabled) setWalDisabled(boolean walDisabled)
-
Field Details
-
DEFAULT_MEMORY_LIMIT
public static final long DEFAULT_MEMORY_LIMIT- See Also:
-
DEFAULT_UNLIMITED_MAX_OPEN_FILES
public static final int DEFAULT_UNLIMITED_MAX_OPEN_FILES- See Also:
-
DEFAULT_MAX_WRITE_BUFFER_NUMBER
public static final int DEFAULT_MAX_WRITE_BUFFER_NUMBER- See Also:
-
DEFAULT_MIN_WRITE_BUFFER_NUMBER_TO_MERGE
public static final int DEFAULT_MIN_WRITE_BUFFER_NUMBER_TO_MERGE- See Also:
-
DEFAULT_STATISTICS_ENABLED
public static final boolean DEFAULT_STATISTICS_ENABLED- See Also:
-
DEFAULT_WAL_DISABLED
public static final boolean DEFAULT_WAL_DISABLEDWARN: It is safe to disable wal as long as there is only one column family. With more than one column family, consistency across multiple column family is ensured by WAL while taking a checkpoint.http://rocksdb.org/blog/2015/11/10/use-checkpoints-for-efficient-snapshots.html >>> The Checkpoint feature enables RocksDB to create a consistent snapshot of a given RocksDB database in the specified directory. If the snapshot is on the same filesystem as the original database, the SST files will be hard-linked, otherwise SST files will be copied. The manifest and CURRENT files will be copied. In addition, if there are multiple column families, log files will be copied for the period covering the start and end of the checkpoint, in order to provide a consistent snapshot across column families. invalid input: '<'invalid input: '<'invalid input: '<'
- See Also:
-
DEFAULT_SST_PARTITIONING_ENABLED
public static final boolean DEFAULT_SST_PARTITIONING_ENABLEDEnabling this feature gives a hint to the RocksDB compaction to compact based on virtual column family prefixes. In consequence this means we will have more SST files, but split up into related data sets.Benchmarks have shown that this allows better performance even on large RocksDB state.
- See Also:
-
DEFAULT_IO_RATE_BYTES_PER_SECOND
public static final int DEFAULT_IO_RATE_BYTES_PER_SECOND- See Also:
-
-
Constructor Details
-
RocksDbConfiguration
public RocksDbConfiguration()
-
-
Method Details
-
getColumnFamilyOptions
-
setColumnFamilyOptions
-
isStatisticsEnabled
public boolean isStatisticsEnabled() -
setStatisticsEnabled
-
getMemoryLimit
public long getMemoryLimit() -
setMemoryLimit
-
getMaxOpenFiles
public int getMaxOpenFiles() -
setMaxOpenFiles
-
getMaxWriteBufferNumber
public int getMaxWriteBufferNumber() -
setMaxWriteBufferNumber
-
getMinWriteBufferNumberToMerge
public int getMinWriteBufferNumberToMerge() -
setMinWriteBufferNumberToMerge
-
getIoRateBytesPerSecond
public int getIoRateBytesPerSecond() -
setIoRateBytesPerSecond
-
isWalDisabled
public boolean isWalDisabled() -
setWalDisabled
-
isSstPartitioningEnabled
public boolean isSstPartitioningEnabled() -
setSstPartitioningEnabled
-