Class RocksDbConfiguration

java.lang.Object
io.camunda.zeebe.db.impl.rocksdb.RocksDbConfiguration

public final class RocksDbConfiguration extends Object
  • 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_DISABLED
      WARN: 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. <<<

      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

      public Properties getColumnFamilyOptions()
    • setColumnFamilyOptions

      public RocksDbConfiguration setColumnFamilyOptions(Properties columnFamilyOptions)
    • isStatisticsEnabled

      public boolean isStatisticsEnabled()
    • setStatisticsEnabled

      public RocksDbConfiguration setStatisticsEnabled(boolean statisticsEnabled)
    • getMemoryLimit

      public long getMemoryLimit()
    • setMemoryLimit

      public RocksDbConfiguration setMemoryLimit(long memoryLimit)
    • getMaxOpenFiles

      public int getMaxOpenFiles()
    • setMaxOpenFiles

      public RocksDbConfiguration setMaxOpenFiles(int maxOpenFiles)
    • getMaxWriteBufferNumber

      public int getMaxWriteBufferNumber()
    • setMaxWriteBufferNumber

      public RocksDbConfiguration setMaxWriteBufferNumber(int maxWriteBufferNumber)
    • getMinWriteBufferNumberToMerge

      public int getMinWriteBufferNumberToMerge()
    • setMinWriteBufferNumberToMerge

      public RocksDbConfiguration setMinWriteBufferNumberToMerge(int minWriteBufferNumberToMerge)
    • getIoRateBytesPerSecond

      public int getIoRateBytesPerSecond()
    • setIoRateBytesPerSecond

      public RocksDbConfiguration setIoRateBytesPerSecond(int ioRateBytesPerSecond)
    • isWalDisabled

      public boolean isWalDisabled()
    • setWalDisabled

      public RocksDbConfiguration setWalDisabled(boolean walDisabled)