Closed bryan-stclab closed 1 year ago
kind: ScalingComponent id: dynamodb-table component_kind: amazon-dynamodb metadata: region: ap-northeast-2 access_key: [AWS_ACCEESS_KEY_ID] secret_key: [AWS_SECRET_KEY_ID] table_name: test-dynamodb-table
kind: ScalingPlan id: scaling_plan_dynamodb-table title: "Scaling Plan for DynamoDB Table" plans:
expression: "cloudwatch_consumed_write_capacity_units_cnt >= 10"
priority: 1 scaling_components:
capacity_mode: PAY_PER_REQUEST
expression: "cloudwatch_consumed_write_capacity_units_cnt >= 100" priority: 2 scaling_components:
capacity_mode: PAY_PER_REQUEST autoscaling_mode: "PROVISIONED" capacity_unit: "READ_WRITE" read_min_capacity: 5 read_max_capacity: 10 read_target_value: 60.0 write_min_capacity: 5 write_max_capacity: 10 write_target_value: 80.0
https://github.com/STCLab-Inc/wave-autoscale/tree/97-scaling-component-amazon-dynamodb-table
JavaScript expression that returns a boolean value.
expression: "cloudwatch_consumed_write_capacity_units_cnt >= 10"
Higher priority values will be checked first.
priority: 1 scaling_components:
JavaScript expression that returns an integer.
capacity_mode: PAY_PER_REQUEST
JavaScript expression that returns a boolean value.
expression: "cloudwatch_consumed_write_capacity_units_cnt >= 100" priority: 2 scaling_components:
JavaScript expression that returns an integer.
capacity_mode: PAY_PER_REQUEST autoscaling_mode: "PROVISIONED" capacity_unit: "READ_WRITE" read_min_capacity: 5 read_max_capacity: 10 read_target_value: 60.0 write_min_capacity: 5 write_max_capacity: 10 write_target_value: 80.0