Skip to main content

Module compact

Module compact 

Source
Expand description

waratah compact: offline flush + full-range compaction of an existing RocksDB data-dir.

Opens each targeted storage brick in this process (like import --offline) and compacts it so the on-disk layout matches the current tuning:

  • hexastore axes open with the stats collectors attached, so waratah.stats SST properties are re-collected from the compaction output;
  • the registry opens with the registry tuning (32 KiB SST blocks), so existing files are rewritten at the new block size โ€” existing files keep their original block size until a compaction rewrites them.

Targets run sequentially: one compaction saturates a spinning disk, and parallel full-range compactions would just interleave their streams.

Structsยง

SstStats ๐Ÿ”’
On-disk SST summary for one store directory (before/after progress lines).

Enumsยง

CompactTarget
One compaction target.

Constantsยง

CANONICAL_ORDER ๐Ÿ”’

Functionsยง

compact_axis ๐Ÿ”’
Flush + full-range compaction of one hexastore axis.
compact_registry ๐Ÿ”’
Flush + full-range compaction of the string registry.
run
Flush and compact targets of an existing data-dir, sequentially.