pub struct ResolvedLoadShed {
pub policy: LoadShedPolicyKind,
pub egress_budget_mbps: u64,
pub max_concurrent_serves_high: u32,
pub max_concurrent_serves_low: u32,
pub per_client_serve_cap: u32,
}Expand description
Resolved load-shedding thresholds.
Fields§
§policy: LoadShedPolicyKindWhich policy decides admission.
egress_budget_mbps: u64Serving egress budget in Mbps. 0 disables the egress ceiling.
max_concurrent_serves_high: u32Concurrency high-water mark: at or above it, the node starts shedding
misses. The resolver rejects a value below
Self::max_concurrent_serves_low.
max_concurrent_serves_low: u32Concurrency low-water mark: at or below it, the node resumes admitting. The gap to the high mark is what stops the decision flapping.
per_client_serve_cap: u32Per-client concurrent-serve cap, enforced only while under pressure.
0 disables it.
Trait Implementations§
Source§impl Clone for ResolvedLoadShed
impl Clone for ResolvedLoadShed
Source§impl Debug for ResolvedLoadShed
impl Debug for ResolvedLoadShed
Auto Trait Implementations§
impl Freeze for ResolvedLoadShed
impl RefUnwindSafe for ResolvedLoadShed
impl Send for ResolvedLoadShed
impl Sync for ResolvedLoadShed
impl Unpin for ResolvedLoadShed
impl UnsafeUnpin for ResolvedLoadShed
impl UnwindSafe for ResolvedLoadShed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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