3
AWS freigegeben auto scaling für DynamoDB. Ich würde gerne wissen, wie man eine Tabelle mit automatischer Skalierung über Cloudformation erstellt.DynamoDB automatische Skalierung mit Cloudformation
AWS freigegeben auto scaling für DynamoDB. Ich würde gerne wissen, wie man eine Tabelle mit automatischer Skalierung über Cloudformation erstellt.DynamoDB automatische Skalierung mit Cloudformation
Hier ist die ClodFormation automatische Skalierungsrichtlinie für DynamoDB-Tabelle. Hoffe, es gibt Ihnen eine Idee, wie Sie das Policy-Skript erstellen.
{
"Type" : "AWS::ApplicationAutoScaling::ScalingPolicy",
"Properties" : {
"PolicyName" : "MyScalingPolicy",
"PolicyType" : "TargetTrackingScaling",
"ResourceId" : "arn:aws:dynamodb:us-east-1:123456789012:table/books_table",
"ScalableDimension" : "dynamodb:table:WriteCapacityUnits",
"ServiceNamespace" : "dynamodb",
"TargetTrackingScalingPolicyConfiguration" : {
"PredefinedMetricSpecification": {
"PredefinedMetricType": "DynamoDBWriteCapacityUtilization"
},
"ScaleOutCooldown": 60,
"ScaleInCooldown": 60,
"TargetValue": 50.0
}
}
}
Referenzen: -
CloudFormaction auto-scaling policy
AWS CLI command for auto scaling
AWS CLI-Befehl: -
aws application-autoscaling put-scaling-policy \
--service-namespace dynamodb \
--resource-id "table/TestTable" \
--scalable-dimension "dynamodb:table:WriteCapacityUnits" \
--policy-name "MyScalingPolicy" \
--policy-type "TargetTrackingScaling" \
--target-tracking-scaling-policy-configuration file://scaling-policy.json
Skalierung-policy.json: -
{
"PredefinedMetricSpecification": {
"PredefinedMetricType": "DynamoDBWriteCapacityUtilization"
},
"ScaleOutCooldown": 60,
"ScaleInCooldown": 60,
"TargetValue": 50.0
}
Danke, es hat funktioniert !! Ich habe eine ScalingPolicy, ScalingTarget und eine Rolle –
Great stuff ... – notionquest
Wie Sie mehrere Tabellen (Ressourcen) zu einem skalierbaren Ziel hinzufügen? – eddyrokr