pub struct LoadShedConfig {
pub policy: Option<String>,
pub egress_budget_mbps: Option<u64>,
pub max_concurrent_serves_high: Option<u32>,
pub max_concurrent_serves_low: Option<u32>,
pub per_client_serve_cap: Option<u32>,
}Expand description
[load_shed] section — node-local load-shedding thresholds (overload
protection). All fields optional; unset falls back to the resolved
defaults.
Fields§
§policy: Option<String>resource-pressure (default) or always-admit.
egress_budget_mbps: Option<u64>Serving egress budget in Mbps; 0 disables the egress ceiling.
max_concurrent_serves_high: Option<u32>Concurrency high-water mark (start shedding misses at/above).
max_concurrent_serves_low: Option<u32>Concurrency low-water mark (resume at/below).
per_client_serve_cap: Option<u32>Per-client concurrent-serve cap, enforced only under pressure; 0 off.
Trait Implementations§
Source§impl Debug for LoadShedConfig
impl Debug for LoadShedConfig
Source§impl Default for LoadShedConfig
impl Default for LoadShedConfig
Source§impl<'de> Deserialize<'de> for LoadShedConfig
impl<'de> Deserialize<'de> for LoadShedConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LoadShedConfig
impl RefUnwindSafe for LoadShedConfig
impl Send for LoadShedConfig
impl Sync for LoadShedConfig
impl Unpin for LoadShedConfig
impl UnsafeUnpin for LoadShedConfig
impl UnwindSafe for LoadShedConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more