pub struct BreakerConfig {
pub failure_threshold: u32,
pub recovery_secs: u64,
pub half_open_probes: u32,
}Expand description
[upstream.circuit_breaker]: take a failing backend out of rotation.
Fields§
§failure_threshold: u32Consecutive failures (connection errors, 502/503/504) that open it.
recovery_secs: u64How long an open backend is left alone before a probe request.
half_open_probes: u32Probe requests allowed at once while half-open.
Trait Implementations§
Source§impl Clone for BreakerConfig
impl Clone for BreakerConfig
Source§impl Debug for BreakerConfig
impl Debug for BreakerConfig
Source§impl PartialEq for BreakerConfig
impl PartialEq for BreakerConfig
impl StructuralPartialEq for BreakerConfig
Auto Trait Implementations§
impl Freeze for BreakerConfig
impl RefUnwindSafe for BreakerConfig
impl Send for BreakerConfig
impl Sync for BreakerConfig
impl Unpin for BreakerConfig
impl UnsafeUnpin for BreakerConfig
impl UnwindSafe for BreakerConfig
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