Expand description
§chronix-compaction
Hybrid compaction engine for the Chronix time-series database.
Combines TWCS (Time-Window Compaction Strategy) with size-tiered merging and write-amplification budgeting for optimal background I/O management.
This crate provides:
CompactionPicker— hybrid TWCS + size-tiered segment selectionCompactionExecutor— merge-sort compaction with deduplicationCompactionLevel— segment tiering (L0, L1, L2)CompactionTask— description of a pending compaction jobCompactionPolicy— per-namespace compaction configurationCompactionStrategy— strategy selection (TWCS, SizeTiered, Hybrid)SizeTier— segment size classification (Tiny, Small, Medium, Large)WriteAmpTracker— write-amplification budget trackingSegmentState— lifecycle state machine for segment files
Re-exports§
pub use error::CompactionError;pub use executor::CompactionExecutor;pub use picker::CompactionLevel;pub use picker::CompactionPicker;pub use picker::CompactionPolicy;pub use picker::CompactionStrategy;pub use picker::CompactionTask;pub use picker::SizeTier;pub use picker::WriteAmpTracker;
Modules§
- error
- Compaction error types.
- executor
- Compaction executor — merge-sort compaction with deduplication.
- picker
- Compaction picker — decides which segments to compact.
Enums§
- Segment
State - Lifecycle state for a segment file.