Skip to main content

MAX_COLLECT_RETENTION_DAYS

Constant MAX_COLLECT_RETENTION_DAYS 

Source
pub const MAX_COLLECT_RETENTION_DAYS: u32 = 3650;
Expand description

Upper bound on ServerSettings::collect_retention_days (10 years). Bundles are debugging / audit artifacts, so an operator has no reason to keep them longer than this; the ceiling stops a fat-fingered value from pushing the collections Object Store’s max_age to something absurd. (The bucket’s max_bytes cap still bounds actual disk regardless.) Enforced by the PUT handler and clamped in ServerSettings::effective_collect_retention_days so even a hand-written KV value stays sane.