Expand description
RocksDB hexastore backend via waratah-rocksdb-sys.
Structs§
- Rocks
DbOptions Hooks - Optional RocksDB options hooks (stats collectors, event listeners).
- Rocks
DbStorage - RocksDB-backed hexastore storage for one partition axis.
- Rocks
DbTuning - RocksDB open knobs shared by hexastore partitions and the disk registry.
- Warm
Block Cache Stats - 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 theGet/MultiGetpath (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-Seekconsult 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 iteratorSeekconsulted the prefix bloom and the negative verdict skipped the whole SST (NON_LAST_LEVEL_SEEK_FILTERED, recorded at the skip decision inBlockBasedTableIterator::Seek). This is the seek-side counterpart ofTICKER_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 iteratorSeekconsulted 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), orNonewhen 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=0disables). Child processes inherit the variable, so setting it beforewaratah start/waratah importcovers the whole local cluster. SeeRocksDbTuning::pin_index_in_cachefor 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_filterin its [ColumnFamilyDefinition] (hexastorespog/sopg/tsgtoday). Off by default;WARATAH_SST_FILTER=1enables. Child processes inherit the variable, so setting it beforewaratah start/waratah importcovers 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(orfalse/off/no) disables it. Child processes inherit the variable, so setting it beforewaratah start/waratah importcovers the whole local cluster.