pub struct AntiAffinityConfig {
pub leadership_concentration_threshold: f32,
pub leadership_concentration_penalty: f32,
}Expand description
Anti-affinity axis configuration. Penalizes nodes that already
lead more than leadership_concentration_threshold fraction of
channels in local view, multiplying their final score by
leadership_concentration_penalty.
Fields§
§leadership_concentration_threshold: f32[0.0, 1.0]. Default 0.30 (penalize past 30% leadership).
leadership_concentration_penalty: f32[0.0, 1.0]. Default 0.4 (multiply by 0.4 when over).
Trait Implementations§
Source§impl Clone for AntiAffinityConfig
impl Clone for AntiAffinityConfig
Source§fn clone(&self) -> AntiAffinityConfig
fn clone(&self) -> AntiAffinityConfig
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 AntiAffinityConfig
Source§impl Debug for AntiAffinityConfig
impl Debug for AntiAffinityConfig
Auto Trait Implementations§
impl Freeze for AntiAffinityConfig
impl RefUnwindSafe for AntiAffinityConfig
impl Send for AntiAffinityConfig
impl Sync for AntiAffinityConfig
impl Unpin for AntiAffinityConfig
impl UnsafeUnpin for AntiAffinityConfig
impl UnwindSafe for AntiAffinityConfig
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