pub trait SchedulingAlgorithm: Send + Sync {
// Required methods
fn score(&self, workload: &Workload, node: &NodeResources) -> f64;
fn name(&self) -> &str;
}Expand description
Trait for scheduling algorithms
Required Methods§
Sourcefn score(&self, workload: &Workload, node: &NodeResources) -> f64
fn score(&self, workload: &Workload, node: &NodeResources) -> f64
Score a node for a workload (higher = better)