Struct aws_sdk_keyspaces::types::AutoScalingSettings
source · #[non_exhaustive]pub struct AutoScalingSettings {
pub auto_scaling_disabled: bool,
pub minimum_units: Option<i64>,
pub maximum_units: Option<i64>,
pub scaling_policy: Option<AutoScalingPolicy>,
}
Expand description
The optional auto scaling settings for a table with provisioned throughput capacity.
To turn on auto scaling for a table in throughputMode:PROVISIONED
, you must specify the following parameters.
Configure the minimum and maximum capacity units. The auto scaling policy ensures that capacity never goes below the minimum or above the maximum range.
-
minimumUnits
: The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default). -
maximumUnits
: The maximum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default). -
scalingPolicy
: Amazon Keyspaces supports thetarget tracking
scaling policy. The auto scaling target is the provisioned capacity of the table.-
targetTrackingScalingPolicyConfiguration
: To define the target tracking policy, you must define the target value.-
targetValue
: The target utilization rate of the table. Amazon Keyspaces auto scaling ensures that the ratio of consumed capacity to provisioned capacity stays at or near this value. You definetargetValue
as a percentage. Adouble
between 20 and 90. (Required) -
disableScaleIn
: Aboolean
that specifies ifscale-in
is disabled or enabled for the table. This parameter is disabled by default. To turn onscale-in
, set theboolean
value toFALSE
. This means that capacity for a table can be automatically scaled down on your behalf. (Optional) -
scaleInCooldown
: A cooldown period in seconds between scaling activities that lets the table stabilize before another scale in activity starts. If no value is provided, the default is 0. (Optional) -
scaleOutCooldown
: A cooldown period in seconds between scaling activities that lets the table stabilize before another scale out activity starts. If no value is provided, the default is 0. (Optional)
-
-
For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
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.auto_scaling_disabled: bool
This optional parameter enables auto scaling for the table if set to false
.
minimum_units: Option<i64>
The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
maximum_units: Option<i64>
Manage costs by specifying the maximum amount of throughput to provision. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
scaling_policy: Option<AutoScalingPolicy>
Amazon Keyspaces supports the target tracking
auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.
Implementations§
source§impl AutoScalingSettings
impl AutoScalingSettings
sourcepub fn auto_scaling_disabled(&self) -> bool
pub fn auto_scaling_disabled(&self) -> bool
This optional parameter enables auto scaling for the table if set to false
.
sourcepub fn minimum_units(&self) -> Option<i64>
pub fn minimum_units(&self) -> Option<i64>
The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
sourcepub fn maximum_units(&self) -> Option<i64>
pub fn maximum_units(&self) -> Option<i64>
Manage costs by specifying the maximum amount of throughput to provision. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
sourcepub fn scaling_policy(&self) -> Option<&AutoScalingPolicy>
pub fn scaling_policy(&self) -> Option<&AutoScalingPolicy>
Amazon Keyspaces supports the target tracking
auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.
source§impl AutoScalingSettings
impl AutoScalingSettings
sourcepub fn builder() -> AutoScalingSettingsBuilder
pub fn builder() -> AutoScalingSettingsBuilder
Creates a new builder-style object to manufacture AutoScalingSettings
.
Trait Implementations§
source§impl Clone for AutoScalingSettings
impl Clone for AutoScalingSettings
source§fn clone(&self) -> AutoScalingSettings
fn clone(&self) -> AutoScalingSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoScalingSettings
impl Debug for AutoScalingSettings
source§impl PartialEq for AutoScalingSettings
impl PartialEq for AutoScalingSettings
source§fn eq(&self, other: &AutoScalingSettings) -> bool
fn eq(&self, other: &AutoScalingSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoScalingSettings
Auto Trait Implementations§
impl Freeze for AutoScalingSettings
impl RefUnwindSafe for AutoScalingSettings
impl Send for AutoScalingSettings
impl Sync for AutoScalingSettings
impl Unpin for AutoScalingSettings
impl UnwindSafe for AutoScalingSettings
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> 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