From 1fd86375c9eafe48829418c61f8863f942cef168 Mon Sep 17 00:00:00 2001 From: Sebastian Rieger Date: Thu, 13 Jun 2024 12:46:35 +0200 Subject: [PATCH] increased instance warmup time to prevent autoscaling example from draining and killing instances before they are ready --- .../aws-boto3-standalone-db-autoscaling/start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example-projects/tug-of-war-in-the-clouds/aws-boto3-standalone-db-autoscaling/start.py b/example-projects/tug-of-war-in-the-clouds/aws-boto3-standalone-db-autoscaling/start.py index edb772c..e28516c 100644 --- a/example-projects/tug-of-war-in-the-clouds/aws-boto3-standalone-db-autoscaling/start.py +++ b/example-projects/tug-of-war-in-the-clouds/aws-boto3-standalone-db-autoscaling/start.py @@ -378,7 +378,7 @@ response = asClient.put_scaling_policy( AutoScalingGroupName='tug-of-war-asg-autoscalinggroup', PolicyName='tug-of-war-asg-scalingpolicy', PolicyType='TargetTrackingScaling', - EstimatedInstanceWarmup=30, + EstimatedInstanceWarmup=60, TargetTrackingConfiguration={ 'PredefinedMetricSpecification': { 'PredefinedMetricType': 'ALBRequestCountPerTarget',