#[non_exhaustive]pub struct AutoscalingTargets {
pub cpu_utilization_percent: i32,
pub storage_utilization_gib_per_node: i32,
/* private fields */
}Expand description
The Autoscaling targets for a Cluster. These determine the recommended nodes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cpu_utilization_percent: i32The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80, otherwise it will return INVALID_ARGUMENT error.
storage_utilization_gib_per_node: i32The storage utilization that the Autoscaler should be trying to achieve. This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, it will be treated as if it were set to the default value: 2560 for SSD, 8192 for HDD.
Implementations§
Source§impl AutoscalingTargets
impl AutoscalingTargets
Sourcepub fn set_cpu_utilization_percent<T: Into<i32>>(self, v: T) -> Self
pub fn set_cpu_utilization_percent<T: Into<i32>>(self, v: T) -> Self
Sets the value of cpu_utilization_percent.
§Example
let x = AutoscalingTargets::new().set_cpu_utilization_percent(42);Sourcepub fn set_storage_utilization_gib_per_node<T: Into<i32>>(self, v: T) -> Self
pub fn set_storage_utilization_gib_per_node<T: Into<i32>>(self, v: T) -> Self
Sets the value of storage_utilization_gib_per_node.
§Example
let x = AutoscalingTargets::new().set_storage_utilization_gib_per_node(42);Trait Implementations§
Source§impl Clone for AutoscalingTargets
impl Clone for AutoscalingTargets
Source§fn clone(&self) -> AutoscalingTargets
fn clone(&self) -> AutoscalingTargets
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AutoscalingTargets
impl Debug for AutoscalingTargets
Source§impl Default for AutoscalingTargets
impl Default for AutoscalingTargets
Source§fn default() -> AutoscalingTargets
fn default() -> AutoscalingTargets
Source§impl Message for AutoscalingTargets
impl Message for AutoscalingTargets
Source§impl PartialEq for AutoscalingTargets
impl PartialEq for AutoscalingTargets
impl StructuralPartialEq for AutoscalingTargets
Auto Trait Implementations§
impl Freeze for AutoscalingTargets
impl RefUnwindSafe for AutoscalingTargets
impl Send for AutoscalingTargets
impl Sync for AutoscalingTargets
impl Unpin for AutoscalingTargets
impl UnsafeUnpin for AutoscalingTargets
impl UnwindSafe for AutoscalingTargets
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
T in a tonic::Request