pub struct AutoscalingLimits {
pub max_nodes: Option<i32>,
pub max_processing_units: Option<i32>,
pub min_nodes: Option<i32>,
pub min_processing_units: Option<i32>,
}
Expand description
The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit.
This type is not used in any activity, and only used as part of another schema.
Fields§
§max_nodes: Option<i32>
Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.
max_processing_units: Option<i32>
Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
min_nodes: Option<i32>
Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.
min_processing_units: Option<i32>
Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
Trait Implementations§
Source§impl Clone for AutoscalingLimits
impl Clone for AutoscalingLimits
Source§fn clone(&self) -> AutoscalingLimits
fn clone(&self) -> AutoscalingLimits
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AutoscalingLimits
impl Debug for AutoscalingLimits
Source§impl Default for AutoscalingLimits
impl Default for AutoscalingLimits
Source§fn default() -> AutoscalingLimits
fn default() -> AutoscalingLimits
Source§impl<'de> Deserialize<'de> for AutoscalingLimits
impl<'de> Deserialize<'de> for AutoscalingLimits
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>,
Source§impl Serialize for AutoscalingLimits
impl Serialize for AutoscalingLimits
impl Part for AutoscalingLimits
Auto Trait Implementations§
impl Freeze for AutoscalingLimits
impl RefUnwindSafe for AutoscalingLimits
impl Send for AutoscalingLimits
impl Sync for AutoscalingLimits
impl Unpin for AutoscalingLimits
impl UnwindSafe for AutoscalingLimits
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more