autoscaling
This commit is contained in:
parent
e3f3ad1e0b
commit
2c03bca76b
@ -270,9 +270,6 @@ def put_scaling_policies(autoscaling_client, asg_arn):
|
|||||||
AutoScalingGroupName=f"{PREFIX}-asg",
|
AutoScalingGroupName=f"{PREFIX}-asg",
|
||||||
PolicyName=f"{PREFIX}-scale-up",
|
PolicyName=f"{PREFIX}-scale-up",
|
||||||
PolicyType='TargetTrackingScaling',
|
PolicyType='TargetTrackingScaling',
|
||||||
AdjustmentType="ChangeInCapacity",
|
|
||||||
ScalingAdjustment=1,
|
|
||||||
MetricAggregationType="Average",
|
|
||||||
Cooldown=180,
|
Cooldown=180,
|
||||||
TargetTrackingConfiguration={
|
TargetTrackingConfiguration={
|
||||||
'PredefinedMetricSpecification': {
|
'PredefinedMetricSpecification': {
|
||||||
@ -289,9 +286,6 @@ def put_scaling_policies(autoscaling_client, asg_arn):
|
|||||||
AutoScalingGroupName=f"{PREFIX}-asg",
|
AutoScalingGroupName=f"{PREFIX}-asg",
|
||||||
PolicyName=f"{PREFIX}-scale-down",
|
PolicyName=f"{PREFIX}-scale-down",
|
||||||
PolicyType='TargetTrackingScaling',
|
PolicyType='TargetTrackingScaling',
|
||||||
AdjustmentType="ChangeInCapacity",
|
|
||||||
ScalingAdjustment=1,
|
|
||||||
MetricAggregationType="Average",
|
|
||||||
Cooldown=180,
|
Cooldown=180,
|
||||||
TargetTrackingConfiguration={
|
TargetTrackingConfiguration={
|
||||||
'PredefinedMetricSpecification': {
|
'PredefinedMetricSpecification': {
|
||||||
|
Loading…
Reference in New Issue
Block a user