pub struct InfraPolicyConfig {
pub max_signal_age_ms: u64,
pub min_waiting_requests: u64,
pub max_capable_inflight: u64,
pub max_spillovers: u64,
pub min_saving_ms: f64,
pub efficient_workers: BTreeMap<String, QueueCalibration>,
pub capable_workers: BTreeMap<String, f64>,
}Expand description
Queue thresholds and measured service times. No production defaults are assumed.
Fields§
§max_signal_age_ms: u64Maximum age of every required worker observation.
min_waiting_requests: u64Every efficient worker must have at least this many waiting requests.
max_capable_inflight: u64Stop moving requests when observed running or locally tracked capable work reaches this limit.
max_spillovers: u64Limit concurrent moved requests through the host.
min_saving_ms: f64Required predicted saving over the capable model’s service time.
efficient_workers: BTreeMap<String, QueueCalibration>All efficient workers, with their measured batch and foreground service times.
capable_workers: BTreeMap<String, f64>All capable workers, with their measured foreground service time in milliseconds.
Trait Implementations§
Source§impl Clone for InfraPolicyConfig
impl Clone for InfraPolicyConfig
Source§fn clone(&self) -> InfraPolicyConfig
fn clone(&self) -> InfraPolicyConfig
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 InfraPolicyConfig
impl Debug for InfraPolicyConfig
Source§impl<'de> Deserialize<'de> for InfraPolicyConfig
impl<'de> Deserialize<'de> for InfraPolicyConfig
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 InfraPolicyConfig
impl RefUnwindSafe for InfraPolicyConfig
impl Send for InfraPolicyConfig
impl Sync for InfraPolicyConfig
impl Unpin for InfraPolicyConfig
impl UnsafeUnpin for InfraPolicyConfig
impl UnwindSafe for InfraPolicyConfig
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