Follow the same process outlined in sections 6.2 and 6.3 to enable auto scaling for the admin application, with the following configuration:

Auto Scaling Configuration:

  • Service: fcj-admin-svc
  • Minimum number of tasks: 1
  • Maximum number of tasks: 3
  • Policy name: fcj-admin-scaling-policy
  • ECS service metric: ECSServiceAverageCPUUtilization
  • Target value: 30

Load Testing: To test the admin application auto scaling, use the following command in CloudShell:

Replace <alb-dns-name> with your ALB’s DNS name.

bash
ab -n 1000000 -c 50 http://<alb-dns-name>:81/