pub struct ReadPoolAutoScaleConfig {
pub enabled: Option<bool>,
pub min_node_count: Option<i32>,
pub max_node_count: Option<i32>,
pub target_metrics: Vec<TargetMetric>,
pub disable_scale_in: Option<bool>,
pub scale_in_cooldown_seconds: Option<i32>,
pub scale_out_cooldown_seconds: Option<i32>,
}Expand description
The read pool auto-scale configuration.
Fields§
§enabled: Option<bool>Indicates whether read pool auto scaling is enabled.
min_node_count: Option<i32>Minimum number of read pool nodes to be maintained.
max_node_count: Option<i32>Maximum number of read pool nodes to be maintained.
target_metrics: Vec<TargetMetric>Optional. Target metrics for read pool auto scaling.
disable_scale_in: Option<bool>Indicates whether read pool auto scaling supports scale in operations (removing nodes).
scale_in_cooldown_seconds: Option<i32>The cooldown period for scale-in operations.
scale_out_cooldown_seconds: Option<i32>The cooldown period for scale-out operations.
Implementations§
Source§impl ReadPoolAutoScaleConfig
impl ReadPoolAutoScaleConfig
Sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Returns the value of enabled, or the default value if enabled is unset.
Sourcepub fn min_node_count(&self) -> i32
pub fn min_node_count(&self) -> i32
Returns the value of min_node_count, or the default value if min_node_count is unset.
Sourcepub fn max_node_count(&self) -> i32
pub fn max_node_count(&self) -> i32
Returns the value of max_node_count, or the default value if max_node_count is unset.
Sourcepub fn disable_scale_in(&self) -> bool
pub fn disable_scale_in(&self) -> bool
Returns the value of disable_scale_in, or the default value if disable_scale_in is unset.
Sourcepub fn scale_in_cooldown_seconds(&self) -> i32
pub fn scale_in_cooldown_seconds(&self) -> i32
Returns the value of scale_in_cooldown_seconds, or the default value if scale_in_cooldown_seconds is unset.
Sourcepub fn scale_out_cooldown_seconds(&self) -> i32
pub fn scale_out_cooldown_seconds(&self) -> i32
Returns the value of scale_out_cooldown_seconds, or the default value if scale_out_cooldown_seconds is unset.
Trait Implementations§
Source§impl Clone for ReadPoolAutoScaleConfig
impl Clone for ReadPoolAutoScaleConfig
Source§fn clone(&self) -> ReadPoolAutoScaleConfig
fn clone(&self) -> ReadPoolAutoScaleConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReadPoolAutoScaleConfig
impl Debug for ReadPoolAutoScaleConfig
Source§impl Default for ReadPoolAutoScaleConfig
impl Default for ReadPoolAutoScaleConfig
Source§impl Message for ReadPoolAutoScaleConfig
impl Message for ReadPoolAutoScaleConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ReadPoolAutoScaleConfig
impl PartialEq for ReadPoolAutoScaleConfig
impl StructuralPartialEq for ReadPoolAutoScaleConfig
Auto Trait Implementations§
impl Freeze for ReadPoolAutoScaleConfig
impl RefUnwindSafe for ReadPoolAutoScaleConfig
impl Send for ReadPoolAutoScaleConfig
impl Sync for ReadPoolAutoScaleConfig
impl Unpin for ReadPoolAutoScaleConfig
impl UnwindSafe for ReadPoolAutoScaleConfig
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> 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