pub struct AutoscalerConfig {
pub enabled: bool,
pub idle_util_pct: f32,
pub high_watt_threshold: f32,
pub deadline_admission: bool,
}Fields§
§enabled: boolEnergy-aware autoscaler. Watches cgn-metrics and drains the
highest-watt nodes when the cluster is idle.
idle_util_pct: f32Idle threshold: drain a node whose 5m util is below this %.
high_watt_threshold: f32Wattage above this threshold makes a node a drain candidate.
deadline_admission: boolPer-tenant deadline propagation (rejects requests whose deadline cannot be met given the current queue).
Trait Implementations§
Source§impl Clone for AutoscalerConfig
impl Clone for AutoscalerConfig
Source§fn clone(&self) -> AutoscalerConfig
fn clone(&self) -> AutoscalerConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 AutoscalerConfig
impl Debug for AutoscalerConfig
Source§impl Default for AutoscalerConfig
impl Default for AutoscalerConfig
Source§impl<'de> Deserialize<'de> for AutoscalerConfigwhere
AutoscalerConfig: Default,
impl<'de> Deserialize<'de> for AutoscalerConfigwhere
AutoscalerConfig: Default,
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 AutoscalerConfig
impl RefUnwindSafe for AutoscalerConfig
impl Send for AutoscalerConfig
impl Sync for AutoscalerConfig
impl Unpin for AutoscalerConfig
impl UnsafeUnpin for AutoscalerConfig
impl UnwindSafe for AutoscalerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request