У нас вы можете посмотреть бесплатно Day44: Implementing Auto Scaling for High Availability in AWS|100Days of Cloud(AWS)|KodeKloud или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Task 1: Create security groups Go to EC2 dashboard and select Security groups from navigation menu. Create two security groups under default VPC. One for ALB Name: xfusion-alb-sg Description: Allow public HTTP access Inbound rules: Type: HTTP Port: 80 Source: Anywhere (0.0.0.0/0) Outbound: Allow all One for EC2 instances Name : nautilus-ec2-sg Description: Allow HTTP from ALB Inbound rules: Type: HTTP Port: 80 Source: nautilus-alb-sg Outbound: Allow all Task 2: Create an EC2 launch template Go to EC2 dashboard and select Launch template from navigation menu. Click on Create launch template in New launch template box. Enter launch template name and description(optional) For AMI, select Amazon Linux 2023 (kernel-6.1). For Instance type, select t2.micro. Under Network settings, select only nautilus-ec2-sg security group and leave rest as it is. Next in the Advance details section, add following script in User data section. #!/bin/bash dnf update -y dnf install nginx -y systemctl start nginx systemctl enable nginx Click Create launch template. Task 3: Create target group Go to EC2 dashboard and select Target groups from navigation menu, Click on Create target group. Under Settings, section, select Target type as Instance. Enter target group name and define ports. Also define VPC as default VPC and IP Address type as IPv4. Click Create target group. Task 4: Create Application Load Balancer Go to EC2 dashboard and select Load balancers from navigation menu, Under Basic configuration, enter name and select Scheme as Internet facing. Under Network mapping, select default VPC and two subnet. Select nautilus-alb-sg secutity group for the ALB. Next under Listeners and routing, select previously created target group. Click Create load balancer. Task 5: Create an Auto Scaling Group Go to EC2 dashboard and select Auto Scaling group from navigation menu, Click on Create Auto Scaling group in Create Auto Scaling group box. Enter auto scalling group name. Select the launch template created earlier and click Next. Under Network, select default VPC and any subnet while leave others as they are and click Next. In the Load balancing section, Select Attach to an existing load balancer and attach previously created target group. Enable health check by clicking Turn on Elastic Load Balancer health check. Ensures a minimum of 1 instance, desired capacity is 1 instance and a maximum of 2 instances are running based on CPU utilization. Set the target CPU utilization to 50%. Create auto scalling group Task 6: Access application via web Go to load balancer dashboard and select nautilus-alb. Enter nautilus-alb DNS name to a browser and you should see nginx default page. #myanmarit#AWS #KodeKloud #100DaysOfCloud #CloudComputing #DevOps