Create Auto Scaling Group
Create Auto Scaling Group
In this section, we will implement an Auto Scaling Group for the FCJ Management application to ensure our application will be deployed with high availability and potentially increase the number of EC2 instances when users visit, into the boost system.
-
Access to EC2
- Select Auto Scaling Groups
- Select Create Auto Scaling group
- Auto Scaling Group name, enter
FCJ-Management-ASG
-
Configure the template
- Launch template, select
FCJ-Management-template
- Select Next
-
Configure Network
- VPC, select created.
- Select AZ and subnet
- Select Next
-
Configure Load balancing
- Select Attach to an existing load balancer
- Select Choose from your load balancer target groups
- Select
FCJ-Management-TG
- Select Next
-
Configure group size and scaling policy.
- Desired capacity: Enter 1. (Default)
- Minimum capacity: Enter 1. (Default)
- Maximum capacity: Enter 3.
-
Under Scaling policies - optional: Select this exercise to make it easier for the next step to be checked. You can completely set the resource scaling policy according to your needs.
- Select Target tracking scaling policy
- Scaling policy name, enter
Target Tracking Policy
- Metric type, select Application Load Balancer request count per target.
- Target group, enter
FCJ-Management
- Target value, enter 30
- Select Next
- Select Create a topic.
- Configure Add notifications. Select Next
- Check email and Confirm subscription
- Select Create Auto Scaling group
- Complete creation Auto Scaling groups
-
The initialization of the Auto Scaling Group will be done, the newly created Auto Scaling Group will be displayed in the list, and you can select it to view detailed information.
- We can track existing EC2 instances in the Auto Scaling Group on the Instance management page. Instances with InService status are ready-to-go instances.