AWS Application Load Balancer with Auto Scaling group | Auto Scaling policies:Step by step tutorial

Поділитися
Вставка
  • Опубліковано 22 жов 2024

КОМЕНТАРІ • 37

  • @kodedge
    @kodedge  10 місяців тому +4

    Userdata Script :
    #!/bin/bash
    yum update -y
    yum install -y httpd
    systemctl start httpd
    systemctl enable httpd
    echo "This message from : $(hostname -i)" > /var/www/html/index.html

  • @coderx7177
    @coderx7177 Місяць тому +1

    Wonderfull tutorial,
    First explained the whole theory properly, so that you'll have context of everything,
    Then, moved to practical, so everything studied in the theory made sense!
    Thanks a lot!!

    • @kodedge
      @kodedge  Місяць тому +1

      Thanks for the feedback.

  • @veeramji123
    @veeramji123 11 місяців тому +2

    Excellent Tutorial Bro . Very Simplification For Understanding Concept And Practice Too.

    • @kodedge
      @kodedge  11 місяців тому

      Thanks for the feedback

  • @SrikanthDoddi-g2m
    @SrikanthDoddi-g2m 10 місяців тому +2

    This tutorial was very good, pls do more videos on AWS.

    • @kodedge
      @kodedge  10 місяців тому

      Thanks for the feedback. Yes it’s in progress. Please let me know on which topics you are interested.

    • @SrikanthDoddi-g2m
      @SrikanthDoddi-g2m 10 місяців тому +1

      EKS, and ECS.

    • @kodedge
      @kodedge  8 місяців тому

      Here is the tutorial on EKS : ua-cam.com/video/aXOB4tR0ONU/v-deo.html and on ECS : ua-cam.com/video/ARGmrYFfv44/v-deo.html

  • @KrishnaManohar8021
    @KrishnaManohar8021 9 місяців тому

    Thanks for exceptional diagram (AWS ALB with EC2 Auto Scaling). Subscribed.

    • @kodedge
      @kodedge  9 місяців тому +1

      Thanks for the feedback

  • @merazhussain6022
    @merazhussain6022 11 місяців тому +1

    Brilliant Video Mate

    • @kodedge
      @kodedge  11 місяців тому

      Thanks for the feedback

  • @CLOUDBUDDY_SANKAR
    @CLOUDBUDDY_SANKAR 10 місяців тому

    Simply neet explaination ELB & ASG and what application that you
    used for this slid presentaion?

    • @kodedge
      @kodedge  10 місяців тому +1

      Thanks for the feedback. I am using keynote for the slides.

  • @jainkapil6316
    @jainkapil6316 7 місяців тому +1

    Good explanation ❤❤ just one doubt.. If we have 2 ec2 instance in asg and we put load on only one ec2 instance then how cloud watch metric will capture cpu utilization??? Will it be average of both ec2 or it will capture individual load???

    • @kodedge
      @kodedge  7 місяців тому +1

      Thanks for the feedback.
      When you have an Auto Scaling group with multiple EC2 instances, the CPU utilization metric reported to CloudWatch will be an average across all instances in the Auto Scaling group.
      If you put load on only one EC2 instance, CloudWatch will still capture the CPU utilization for that instance, but when you view the metric for the Auto Scaling group as a whole, it will be an average of the CPU utilization across all instances in the group.
      So, if you put load on only one EC2 instance, that instance's CPU utilization will increase, but the overall average CPU utilization for the Auto Scaling group might not reach the threshold for scaling out unless the other instance(s) also have high CPU utilization or contribute to the average.
      For detail information please refer this documentation : docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html
      docs.aws.amazon.com/autoscaling/application/userguide/target-tracking-scaling-policy-overview.html

  • @itamargardus8156
    @itamargardus8156 5 місяців тому +1

    sudo yum install -y

  • @qwer12341391
    @qwer12341391 Рік тому +1

    SUPERB CLASS

    • @kodedge
      @kodedge  11 місяців тому

      Thanks for the feedback

  • @itamargardus8156
    @itamargardus8156 5 місяців тому +2

    aws cloudwatch set-alarm-state --alarm-name "name of your alarm" --state-value ALARM --state-reason "test

  • @balajikumar2978
    @balajikumar2978 6 місяців тому

    Bro it showing it works!

  • @hrentertainment272
    @hrentertainment272 9 місяців тому

    Hi brother, my ALB DNS is not working, what may be the reasons

    • @kodedge
      @kodedge  9 місяців тому

      Check security group. What is the exact issue you are getting.

    • @hrentertainment272
      @hrentertainment272 9 місяців тому

      @@kodedge getting "502 GATEWAY ERROR"

    • @kodedge
      @kodedge  9 місяців тому

      Hi, Check the security groups of both ALB and AutoScaling group.
      If proper traffic allowed as shown in the video.
      Possibly check here as well at : 16:46 in the video.
      Still if not works try these troubleshooting points:
      docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-troubleshooting.html#http-502-issues
      repost.aws/knowledge-center/elb-alb-troubleshoot-502-errors

  • @hninpwintcho3155
    @hninpwintcho3155 2 місяці тому

    Thanks

    • @kodedge
      @kodedge  2 місяці тому

      Thanks for the feedback.

  • @Амьдрахсайхан-з8б
    @Амьдрахсайхан-з8б 8 місяців тому

    New created ec2 hasn't any application why?

    • @kodedge
      @kodedge  8 місяців тому

      It have httpd server with sample html.

  • @sharanChandra-g6m
    @sharanChandra-g6m 10 місяців тому

    I am getting 502 error aftrer loading alb dns name

    • @kodedge
      @kodedge  10 місяців тому

      docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-troubleshooting.html

  • @shubhammali2281
    @shubhammali2281 11 місяців тому

    Bhai tumse kuch puchna tha

  • @rajez.s7157
    @rajez.s7157 9 місяців тому

    Isn`t the alarm should be triggered automatically when the desired count is set from 2 to 1? Do we need to manually trigger the alarm referring ua-cam.com/video/c4DeyLesQr8/v-deo.html

    • @kodedge
      @kodedge  9 місяців тому

      We have created alarm for cpu utilisation. When cpu utilisation goes above specified threshold then only alarm will get triggered. Can you elaborate for which alarm you are talking about.

    • @jainkapil6316
      @jainkapil6316 7 місяців тому

      I think desired state works only then asg initially spin up ec2.. Once done... It will work on minsize