interface TargetTrackingScalingPolicyConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Cassandra.CfnTable.TargetTrackingScalingPolicyConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscassandra#CfnTable_TargetTrackingScalingPolicyConfigurationProperty |
Java | software.amazon.awscdk.services.cassandra.CfnTable.TargetTrackingScalingPolicyConfigurationProperty |
Python | aws_cdk.aws_cassandra.CfnTable.TargetTrackingScalingPolicyConfigurationProperty |
TypeScript | aws-cdk-lib » aws_cassandra » CfnTable » TargetTrackingScalingPolicyConfigurationProperty |
Amazon Keyspaces supports the target tracking auto scaling policy for a provisioned table.
This policy scales a table based on the ratio of consumed to provisioned capacity. The auto scaling target is a percentage of 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 definetargetValueas a percentage. Adoublebetween 20 and 90. (Required)disableScaleIn: Abooleanthat specifies ifscale-inis disabled or enabled for the table. This parameter is disabled by default. To turn onscale-in, set thebooleanvalue 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)
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cassandra as cassandra } from 'aws-cdk-lib';
const targetTrackingScalingPolicyConfigurationProperty: cassandra.CfnTable.TargetTrackingScalingPolicyConfigurationProperty = {
targetValue: 123,
// the properties below are optional
disableScaleIn: false,
scaleInCooldown: 123,
scaleOutCooldown: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| target | number | Specifies the target value for the target tracking auto scaling policy. |
| disable | boolean | IResolvable | Specifies if scale-in is enabled. |
| scale | number | Specifies a scale-in cool down period. |
| scale | number | Specifies a scale out cool down period. |
targetValue
Type:
number
Specifies the target value for the target tracking auto scaling policy.
Amazon Keyspaces auto scaling scales up capacity automatically when traffic exceeds this target utilization rate, and then back down when it falls below the target. This ensures that the ratio of consumed capacity to provisioned capacity stays at or near this value. You define targetValue as a percentage. An integer between 20 and 90.
disableScaleIn?
Type:
boolean | IResolvable
(optional)
Specifies if scale-in is enabled.
When auto scaling automatically decreases capacity for a table, the table scales in . When scaling policies are set, they can't scale in the table lower than its minimum capacity.
scaleInCooldown?
Type:
number
(optional, default: 0)
Specifies a scale-in cool down period.
A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts.
scaleOutCooldown?
Type:
number
(optional, default: 0)
Specifies a scale out cool down period.
A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts.

.NET
Go
Java
Python
TypeScript