autoscaling

This commit is contained in:
dzikafoczka 2024-12-21 09:40:18 +01:00
parent e3f3ad1e0b
commit 2c03bca76b

View File

@ -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': {