Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Control and Status Variables

Sergei Petrunia edited this page Nov 6, 2015 · 7 revisions

Compatibility

rocksdb_strict_collation_exceptions=regex1,regex2,... - list of patterns of table names which are allowed to have indexes on columns with non-binary collations.

Making bulk delete trigger a compaction

rocksdb_compaction_sequential_deletes - RocksDB will trigger compaction for the file if it has more than this number sequential deletes per window

rocksdb_compaction_sequential_deletes_window - Size of the window for counting rocksdb_compaction_sequential_deletes

compaction_sequential_deletes_file_size - Minimum file size required for compaction_sequential_deletes

Command variables

Setting these is a command to do something:

@@rocksdb_force_flush_memtable_now - flush the memtable (for default CF?)

Other variables

  • rocksdb_default_cf_options Comma-separated list of default options for a column family.
  • rocksdb_db_write_buffer_size
  // Amount of data to build up in memtables across all column
  // families before writing to disk.
  //
  // This is distinct from write_buffer_size, which enforces a limit
  // for a single memtable.
  • rocksdb_seconds_between_stat_computes

Status variables

Writes to SST tables

These are global counters that count the total number of entries (like key/value pairs of tombstones) that were put into SST files.

  • rocksdb_num_sst_entry_put
  • rocksdb_num_sst_entry_delete
  • rocksdb_num_sst_entry_singledelete
  • rocksdb_num_sst_entry_merge
  • rocksdb_num_sst_entry_other

Clone this wiki locally