Skip to main content

Module rocksdb

Module rocksdb 

Source
Expand description

RocksDB hexastore backend via waratah-rocksdb-sys.

Structs§

RocksDbOptionsHooks
Optional RocksDB options hooks (stats collectors, event listeners).
RocksDbStorage
RocksDB-backed hexastore storage for one partition axis.
RocksDbTuning
RocksDB open knobs shared by hexastore partitions and the disk registry.
WarmBlockCacheStats
Block-cache occupancy counters for one warm pass.

Constants§

BULK_MAX_WRITE_BUFFER_NUMBER
Bulk-ingest max_write_buffer_number.
BULK_WRITE_BUFFER_BYTES
Bulk-ingest MemTable write-buffer size (bytes).
COMPACTION_READAHEAD_BYTES
Compaction readahead (bytes).
DEFAULT_BLOCK_SIZE_BYTES
Default SST data-block size (bytes; uncompressed, the RocksDB default).
DEFAULT_ITERATOR_READAHEAD_BYTES
Default fixed readahead (bytes) for stores that opt in via RocksDbTuning::iterator_readahead_bytes — the registry dictionary, whose only reader is an unbounded sorted walk.
DEFAULT_MAX_WRITE_BUFFER_NUMBER
Default max_write_buffer_number (RocksDB default is 2).
DEFAULT_WRITE_BUFFER_BYTES
Default MemTable write-buffer size (bytes).
PREFIX_FILTER_BITS_PER_KEY
Bloom bits per key for the per-SST prefix filters (sst_filter_env_enabled).
REGISTRY_BLOCK_SIZE_BYTES
Registry SST data-block size (bytes).
TICKER_BLOCK_CACHE_FILTER_HIT
See TICKER_BLOCK_CACHE_FILTER_MISS: filter-block cache lookups served from cache (a consult on an already-resident filter block).
TICKER_BLOCK_CACHE_FILTER_MISS
RocksDB statistics ticker ids read through [Db::ticker_count].
TICKER_BLOOM_FILTER_PREFIX_CHECKED
See TICKER_BLOCK_CACHE_FILTER_MISS: a prefix bloom was checked on the Get/MultiGet path (BLOOM_FILTER_PREFIX_CHECKED).
TICKER_BLOOM_FILTER_PREFIX_USEFUL
See TICKER_BLOCK_CACHE_FILTER_MISS: a prefix bloom check came back negative and skipped work (BLOOM_FILTER_PREFIX_USEFUL). Note the iterator-Seek consult path records only perf counters upstream, so this ticker proves the point-lookup path; seek consults are observed via the filter-block cache tickers above instead.
TICKER_SEEK_FILTERED
See TICKER_BLOCK_CACHE_FILTER_MISS: an iterator Seek consulted the prefix bloom and the negative verdict skipped the whole SST (NON_LAST_LEVEL_SEEK_FILTERED, recorded at the skip decision in BlockBasedTableIterator::Seek). This is the seek-side counterpart of TICKER_BLOOM_FILTER_PREFIX_USEFUL — the exact consult the broadcast-filter seek-union and bound-subject pattern scans pay for.
TICKER_SEEK_FILTER_MATCH
See TICKER_SEEK_FILTERED: an iterator Seek consulted the prefix bloom and it did NOT skip (NON_LAST_LEVEL_SEEK_FILTER_MATCH).
WARM_CACHE_FILL_FRACTION
Fraction of block-cache capacity the warm pass fills before stopping ([warm_walk]).
WARM_CACHE_PROBE_INTERVAL
Warm-pass cache-usage probe cadence (iterated entries).

Functions§

disable_auto_compactions
Disable RocksDB background compaction on DB or CF options (*mut rocksdb_options_t).
hexastore_readahead_env_bytes
Resolved hexastore iterator readahead from the temporary A/B knob TEST_HEXASTORE_READAHEAD_SIZE (KiB), or None when unset/invalid/zero.
iterator_readahead_bytes
Resolved iterator readahead for this process.
pin_index_env_enabled
Gate A: cache + pin SST index/filter blocks, process-wide (on by default; WARATAH_PIN_INDEX=0 disables). Child processes inherit the variable, so setting it before waratah start / waratah import covers the whole local cluster. See RocksDbTuning::pin_index_in_cache for the semantics.
scan_async_io_env_enabled
Gate: submit scan-iterator block reads asynchronously via io_uring (ReadOptions::async_io), process-wide (WARATAH_SCAN_ASYNC_IO=1; off by default). Engages for sequential iteration — forward hexastore scans, geo/temporal drains, and the registry warm pass; random seek patterns (the resolve path) are unaffected. Requires io_uring support compiled into the library (ROCKSDB_IOURING_PRESENT); silent synchronous fallback otherwise.
sst_filter_env_enabled
Gate: build per-SST prefix bloom filters on every column family marked prefix_filter in its [ColumnFamilyDefinition] (hexastore spog / sopg / tsg today). Off by default; WARATAH_SST_FILTER=1 enables. Child processes inherit the variable, so setting it before waratah start / waratah import covers the whole local cluster.
warm_cache_env_enabled
Gate B: run the occupancy-targeted block-cache warm pass at startup ([warm_walk]). On by default; WARATAH_WARM_CACHE=0 (or false/off/no) disables it. Child processes inherit the variable, so setting it before waratah start / waratah import covers the whole local cluster.