pub struct FreezerOptions {
pub tick: Duration,
pub hot_tier_bytes: u64,
pub batch_rows: usize,
pub compact_when_segments_exceed: usize,
pub compact_target_bytes: u64,
}Expand description
v7.2.1 — knobs for Database::spawn_background_freezer.
Fields§
§tick: DurationTick interval. Worker wakes every tick, checks the
catalog’s hot_tier_bytes, and freezes if over budget.
hot_tier_bytes: u64Hot-tier byte budget. Exceeded → next tick freezes the
largest table’s oldest batch_rows rows into a new
cold segment.
batch_rows: usizeMax rows the freezer demotes per fire.
compact_when_segments_exceed: usizev7.7.4 — auto-compact threshold. When the catalog has
at least this many cold segments across all tables, the
freezer fires a compaction pass after its next freeze.
Set to usize::MAX to disable auto-compact entirely;
the default is 64, matching the spg-server operating
point for SPG_COLD_COMPACT_SEGMENT_THRESHOLD.
compact_target_bytes: u64v7.7.4 — target segment size for compaction merges,
in bytes. Default 64 MiB, mirroring spg-server. Small
segments below this size are merge candidates;
segments at or above stay untouched.
Trait Implementations§
Source§impl Clone for FreezerOptions
impl Clone for FreezerOptions
Source§fn clone(&self) -> FreezerOptions
fn clone(&self) -> FreezerOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more