Skip to main content

apply_tiered_config

Function apply_tiered_config 

Source
pub fn apply_tiered_config(
    enabled: bool,
    total_budget: usize,
    backend: Backend,
    codec: Option<Codec>,
)
Expand description

Apply a tiered-pager configuration. Reuses the singleton policy::TieredPolicy so in-flight ResidentTickets remain coherent with the running budget after the operator tunes any of the inputs.

When enabled is true, installs a ColumnPager backed by the singleton policy. When false, installs ColumnPager::disabled — in-flight tickets still credit the singleton, which is harmless: the budget grows above the configured total until the next enable reconciles it via reconfigure.