pub struct SelectionConfig {
pub strategy: SelectionStrategy,
pub min_success_rate: f64,
pub weights: SelectionWeightConfig,
pub fairness: FairnessConfig,
pub affinity: AffinityConfig,
pub max_load_per_core: Option<f64>,
pub min_free_gb: Option<f64>,
}Expand description
Configuration for the worker selection algorithm.
Fields§
§strategy: SelectionStrategySelection strategy to use.
min_success_rate: f64Minimum success rate (0.0-1.0) for a worker to be considered.
weights: SelectionWeightConfigFactor weights for the balanced strategy.
fairness: FairnessConfigFairness settings for fair_fastest strategy.
affinity: AffinityConfigCache affinity settings for project-to-worker pinning.
max_load_per_core: Option<f64>Maximum load-per-core threshold. Workers exceeding this are skipped. Set to None to disable load-based filtering.
min_free_gb: Option<f64>Minimum free disk space in GB. Workers below this are skipped. Set to None to disable disk-based filtering.
Trait Implementations§
Source§impl Clone for SelectionConfig
impl Clone for SelectionConfig
Source§fn clone(&self) -> SelectionConfig
fn clone(&self) -> SelectionConfig
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 moreSource§impl Debug for SelectionConfig
impl Debug for SelectionConfig
Source§impl Default for SelectionConfig
impl Default for SelectionConfig
Source§impl<'de> Deserialize<'de> for SelectionConfig
impl<'de> Deserialize<'de> for SelectionConfig
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 SelectionConfig
impl RefUnwindSafe for SelectionConfig
impl Send for SelectionConfig
impl Sync for SelectionConfig
impl Unpin for SelectionConfig
impl UnsafeUnpin for SelectionConfig
impl UnwindSafe for SelectionConfig
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