pub struct HealthConfig {
pub check_interval: Duration,
pub timeout: Duration,
pub min_successes: usize,
pub max_failures: usize,
pub healthy_latency_us: f32,
pub degraded_latency_us: f32,
pub healthy_delivery_ratio: f32,
pub degraded_delivery_ratio: f32,
}Expand description
Health check configuration
Fields§
§check_interval: DurationInterval between health checks
timeout: DurationTimeout for health check response
min_successes: usizeMinimum number of successful checks before considering node healthy
max_failures: usizeMaximum allowed failures before marking node degraded
healthy_latency_us: f32Upper latency bound for a healthy node.
degraded_latency_us: f32Upper latency bound for a degraded-but-usable node.
healthy_delivery_ratio: f32Minimum delivery ratio for a healthy node.
degraded_delivery_ratio: f32Minimum delivery ratio for a degraded node.
Implementations§
Source§impl HealthConfig
impl HealthConfig
Sourcepub fn autotuned(profile: &RuntimeProfile) -> Self
pub fn autotuned(profile: &RuntimeProfile) -> Self
Tune health thresholds from the detected runtime profile.
Trait Implementations§
Source§impl Clone for HealthConfig
impl Clone for HealthConfig
Source§fn clone(&self) -> HealthConfig
fn clone(&self) -> HealthConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HealthConfig
Source§impl Debug for HealthConfig
impl Debug for HealthConfig
Auto Trait Implementations§
impl Freeze for HealthConfig
impl RefUnwindSafe for HealthConfig
impl Send for HealthConfig
impl Sync for HealthConfig
impl Unpin for HealthConfig
impl UnsafeUnpin for HealthConfig
impl UnwindSafe for HealthConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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