1. Copy the DNS name of the ALB for use with Apache Benchmark.
2. Open CloudShell.
3. Execute these commands to install the Apache Benchmark tool and run a load test:
<alb-dns-name>
with your ALB’s DNS name.sudo yum install -y httpd-tools
ab -n 1000000 -c 50 http://<alb-dns-name>/health
4. Wait approximately 5-10 minutes for auto scaling to trigger. You will see the additional tasks being provisioned as CPU utilization increases.
Load Test Parameters: The command sends 1,000,000 requests with 50 concurrent connections to the /health
endpoint. This sustained load should cause CPU utilization to exceed the 30% threshold, triggering the auto scaling policy to create additional tasks.