Configure Service Auto Scale

  1. Move to Amazon ECS and select DEMOGO-ECS cluster.
  2. Select web on Services tab and click Update WebUpdate
  3. Step 1: Configure service - Skip
  4. Step 2: Configure network - Skip
  5. Step 3: Set Auto Scaling
  6. Service Auto Scaling: Configure Service Auto Scaling to adjust your services’ desired count
  7. Minimum number of tasks: 2
  8. Maximum number of tasks: 8
  9. IAM role for Service Auto Scaling: AWSServiceRoleForApplicationAutoScaling_ECSService SetAutoScaling
  10. Automatic task scaling policies – click Add scaling policy
  11. Configure Add policy. TargetTracking
  12. Scaling policy type: Target tracking
  13. Policy name: ALB-request-tracking
  14. ECS service metric: ALBRequestCountPerTarget

You can refer the recent trends from the graphs, based on the metrics you choose.

* Target value: 4000 * Scale-out cooldown period: 10 seconds

We are setting low numbers with an intention to verify the result fast.

  1. Next step and click Update Service.