Auto Scaling Group
testgrinder service will be discontinued on January 31, 2025
testgrinder SMPC was discontinued as of February 1, 2024
Auto Scaling group will help you maintain the specified number of running healthy tg-app instances. The recommended number of running tg-app instances is 2. You may run just 1 instance if you can tolerate a short outage while ASG is detecting the outage and replacing the failed tg-app instance. The ASG will be configured to scale with the load automatically up to the limit you specify.
You can manage auto scaling groups on the Auto Scaling Groups page in AWS EC2 console at https://console.aws.amazon.com/ec2
Create Auto Scaling Group
Visit the Auto Scaling Group page in AWS EC2 console
Click Create Auto Scaling group
Step 1: Choose launch template or configuration
Name:
Auto Scaling group name: tg-prod-app
Launch template:
Launch template: choose the launch template created earlier
Version: Latest
Click Next
Step 2: Choose instance launch options
Network:
VPC: choose testgrinder VPC
Availability Zones and subnets: choose all
Click Next
Step 3: Configure advanced options
Load balancing:
Choose: Attach to an existing load balancer
Choose: Choose from your load balancer target groups
Existing load balancer target groups: choose all
Health checks:
Health check type: ELB
Health check grace period: 120 seconds
Click Next
Step 4: Configure group size and scaling policies
Group Size:
Desired Capacity: 2
You may choose to go with just 1 if you can tolerate a short outage while ASG is detecting a failed tg-app instance and replacing it with a healthy one.
Minimum Capacity: 2
Maximum Capacity: 5
If load increases ASG will scale up to this number of tg-app instances. Recommended number is 5, but you may choose a different number.
Scaling Policies: choose Target tracking scaling policy
Scaling Policy Name: Target 50% CPU Utilization
Metric type: Average CPU Utilization
Target value: 50
Instances need: 120 seconds
Click Next
Step 5: Add notifications
Configure if you'd like to get notifications from ASG
Click Next
Step 6: Tags
Click Next
Step 7: Review
Click Create Auto Scaling group
If you chose to receive notifications on Step 7 you should receive a test notification at this point
Once the Auto Scaling group is created, you should see an instance of tg-app launch and accessible at the domain name you configured.
Last updated