AWS EC2 Auto Scaling : Step By Step Tutorial ( Part - 10)

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

КОМЕНТАРІ • 124

  • @RahulWagh
    @RahulWagh  6 місяців тому +9

    #!/bin/bash
    yes | sudo apt update
    yes | sudo apt install apache2
    echo "Server DetailsHostname: $(hostname)IP Address: $(hostname -I | cut -d" " -f1)" > /var/www/html/index.html
    sudo systemctl restart apache2

    • @ABHINAYYADAV-j2h
      @ABHINAYYADAV-j2h 4 місяці тому

      Bro I want to run a python script how to go with that using autoscaling

    • @SBtt24
      @SBtt24 3 місяці тому +1

      Why in Indian region we have to use Cloudboothook . Why this simple bin/bash dosent work so smoothly ?

    • @vaibhavdesai7001
      @vaibhavdesai7001 3 місяці тому

      @@SBtt24 wdym? I am following this tutorial rn could you please inform me of the changes to make for people in Indian region

    • @SBtt24
      @SBtt24 3 місяці тому

      ​@@vaibhavdesai7001#cloud-boothook
      #!/bin/bash
      You have to add cloud-boothook at the top make your bash code run. Also when you use cloud boothook the system will run on different folder before initialization. So you have to manage your instance packages accordingly. Things are bit complicated.

  • @sivav7464
    @sivav7464 7 місяців тому +8

    google owner teaching on aws

    • @RahulWagh
      @RahulWagh  7 місяців тому +3

      Hahaha no I am Rahul

  • @ShamsuddeenAbdulkadir
    @ShamsuddeenAbdulkadir 5 місяців тому +6

    I must say, this is one of the best ASG's set up tutorial out here.

  • @sanasaryuzbashyan4526
    @sanasaryuzbashyan4526 3 місяці тому

    Rahul thank you for such a wonderful explanation. I just don't understand one thing. When the third instance is launched automatically, how will my project's code be deployed there?. Actually, I'm not sure if there is a smart way to deploy my website's code on all these instances, or is there another way to do this?

  • @rocktech2359
    @rocktech2359 4 місяці тому +1

    Thanks for this wonderful video.
    I have few doubts, can you help.
    I built restapis using Node.js and express and deployed them on to the ec2 instance and using nginx as reverse proxy and load balancer.
    I built these APIs for our startup.
    I'm using t2.micro and my APIs are using in both android and IOS apps.
    I also implemented ci using GitHub actions and running cicd pipeline, it's working fine.
    Now we have app launch we have app launch we are expecting 200 user and they all gonna use at a time.
    so do i need to implement these autoscaling or my nginx loadbalancer can handle it or not.
    and also after these detailed information can you explain me what else i can do .
    if i implement this autoscaling group can i use my running instance and if load increases i will add one more instance.
    Thank you

  • @shubhamshukla4131
    @shubhamshukla4131 4 місяці тому +2

    why it show 502 bad gateway when i hit load balancer DNS

  • @milon27
    @milon27 10 місяців тому +2

    🎉 would you create a video on
    deploy a small to medium scale node js api on aws for small startup with minimum cost like 25-30 usd per month.
    which could increase in future.
    also maybe not use load balancer to reduce cost. and use docker container. and auto scaling etc

  • @learnnetworkingwithmohan8841
    @learnnetworkingwithmohan8841 4 місяці тому +1

    Not working. Health check grace period = 20. It is impossible to create a new instance and do health check in 20 s. This leads to loop like creating and terminating instances leads to server error 5xx. After changing it to 300 everything is cool. Sometimes legend make mistakes. Expecting reply from Rahul Wagh for this one

  • @HarishKumar-mq1ku
    @HarishKumar-mq1ku Місяць тому

    Good explanation 👏

  • @travisjae1775
    @travisjae1775 3 місяці тому +1

    After doing the exact configuration, I'm getting "502 bad Gateway" I do not understand why.

  • @rajendrawarrier7274
    @rajendrawarrier7274 8 місяців тому +4

    Crisp and clear explanation in layman's term

  • @albertndege5596
    @albertndege5596 2 місяці тому +2

    This has to be the best AWS tutorial ever come across, Thanks @Raul

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

      Glad it was helpful!

  • @CodeKumar
    @CodeKumar 29 днів тому

    Sir in part 9 You said ALB is inside VPC and here 0:33 you saying LB will call VPC, I am confused.......

  • @subhashismohanty5420
    @subhashismohanty5420 Місяць тому

    I wish, I could give a medal. Kudos to you brother.
    But one question, in the ALB security group, are you sure we should allow outgoing requests to all IPs in the outbound rule?

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

    Auto scaling support which type of scaling policy it's vertical or horizontal scaling?

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

      It is an horizontal scaling because we are increasing and decreasing the number of instances

  • @kokopopart5173
    @kokopopart5173 4 місяці тому +1

    Very well explained Rahul. The graphical representation really helps put things into perspective.

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

    When I run the dns that I copied from the load balancer I got 502 error why..can any one please explain it

  • @sakshisirsat7493
    @sakshisirsat7493 8 місяців тому +1

    Hello sir ,
    Ur videos r amazing.
    But try to show how to delete this all .

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

    How will my nodejs code be deployed from github to these auto-scaled instances?

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

    Try to make a video on AUTOMATIC SCALING. Please

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

    Hi thanks for the video, I wonder if the instances share the same volume or each one is independent, I also wonder what the estimated monthly price is for this setup

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

    Thank you for this u r valuable information..I want to autoscaling group in diffrent region..can you tell me

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

      @trendymusic8866 please follow the complete series and also you have a time stamp in the description to skip the initial setup

  • @ahmedsalahel-din1311
    @ahmedsalahel-din1311 2 місяці тому

    Thank you a lot for the video👍
    I was expecting to use the auto-scaling policy for any metrics, e.g. CPU util. or load balancer request count

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

    my health status was unhealthy any reason ?

  • @AmrutaWagh-kb3yv
    @AmrutaWagh-kb3yv 11 місяців тому +1

    I want to know if suddnly high traffic come how to resolve this issues?

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

      You have a max count always with you which you can set to high but use scaling based on memory usage as well as cpu to have more control

  • @srinivasaraju8399
    @srinivasaraju8399 Місяць тому

    Can I deploy spring boot application jar file same way you did

  • @manojgandham-lu7tu
    @manojgandham-lu7tu 11 місяців тому +1

    Can you please start terraform to provision these all activities....

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

      Hi Manoj i have stated terraform series to provision all the things which i have shown in this tutorial but it only for the youtube members. If you are interested then you can join my membership program. Here is the playlist for that - ua-cam.com/play/UUMO7p4oXcPbgk_yTSHK7QlkSg.html
      You can join also with - ua-cam.com/channels/7p4oXcPbgk_yTSHK7QlkSg.htmljoin

  • @anutest
    @anutest 4 місяці тому

    how can we connect private subnet instances with ALB, is it possible?

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

    Hi thank you for the awesome explanation. Is it possible to create autoscaling group instances in private subnet?

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

      Yes it is possible in the private subnet as well

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

      @@RahulWagh ohh ok... so in that case do I need to have NAT gateway for that or I can connect private subnet via load balancer?

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

      @@khopithansathiyakeerthy4598 you first need a target group and then loadbalancer after that you should be able to connect

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

      @@RahulWagh Thank you

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

      @@RahulWagh Hi, I created two private subnets(AZ1a, AZ1b) and associated them with a new private route table. There is no IGW or NAT GW connected with that. Then I created a Target group. Then I configured a Load balancer with public subnets in two different Availability zones(AZ1a, AZ1b). After that, I created Auto Scaling group with two private subnets. But the the health check is failed and instances are being destroyed and recreated again and again. So, what would be the reason for this

  • @aniketsalve768
    @aniketsalve768 5 місяців тому

    If possible can you please explain instance refresh for ASG.

  • @vinod-qg5eb
    @vinod-qg5eb 5 місяців тому

    your expiation is very good, but when you uploaded a videos in series, why are you showing the repeated process(vpc, ec2, routes, lb) every time?. If we you can save that time you can upload small videos and cover all the buttons. Sorry it's just my feedback.

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

      I appreciate you feedback and it is valid. But I have thousands of viewers who are only interested in one topic and if i skip the networking part in any of my video then they will not understand why i am working private or public subnet or why i created the VPC in the first place.
      So that is the reason i try to always prepare the setup from the scratch although it might be repeated for you but to improve that experience i have provided the time stamp in the description so that you can skip the networking part which you feel repeated

  • @shivadheeravath-so3pu
    @shivadheeravath-so3pu 2 місяці тому

    Excellent Content Dear Rahul ,Thank You So much ..

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

    your videos are very detailed which help us to get complete knowledge in single video. thanks for your contribution... i have only 1 question in asg that how this instances in asg are also in target group. we have left the target group to be zero since asg will create ec2 instances based on min/max/desired how these instances will be added in target group ? that is my question

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

      You are most welcome

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

    can anybody copy paste the user data script which is used by him?

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

      #!/bin/bash
      yes | sudo apt update
      yes | sudo apt install apache2
      echo "Server DetailsHostname: $(hostname)IP Address: $(hostname -I | cut -d" " -f1)" > /var/www/html/index.html
      sudo systemctl restart apache2

  • @rajbas1628
    @rajbas1628 Місяць тому

    very good explanation Rahul ...thanks 👌

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

    @rahul thank you for sharing knowledge, I tried this same to same setup but my instances are not getting public IPs and hence none of the instances gets healthy in Target Group. please advice If I am missing anything.

    • @RahulWagh
      @RahulWagh  6 місяців тому +1

      Public IPs has nothing to do with the health of ec2 please check the instance user data script if that has been running properly or not

  • @enjoylife8199
    @enjoylife8199 5 місяців тому

    Have to put existing EC2 instances one in backend and frontend in auto scaling group is it possible ? Do i have to create new instance and do all installation part

    • @RahulWagh
      @RahulWagh  5 місяців тому

      Yes it is possible to do that

  • @moulalucky8608
    @moulalucky8608 4 місяці тому

    What case we use load balancer and Autoscaling?

    • @RahulWagh
      @RahulWagh  4 місяці тому +1

      Load balancer will not scale up or scale down instances but instead it will just distribute the traffic equally but autoscalling will increase and decrease the instances

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

    Where do we requested that what type of instances we want on demand or Spot instance.

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

    How may you plan the IP Addressing for a VPC and the related Sub-Nets?

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

    Hii
    I am getting 502 Bad gatewayError whats might be the reason

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

      There could multiple issues for example security group, target group mapping ec2 instance subnet. Check everything one by one

    • @darshandarshuu2841
      @darshandarshuu2841 4 місяці тому +1

      @@RahulWagh facing 502 bad gateway issue

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

      @@RahulWagh checked everything. nothing works

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

    what was the use of min and max . When will no of instances reach maximum or minimum

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

      I had the same question so I investigated, AWS will try to keep the number of instances near of the desired number, if the metric is reached then the number of EC2 instances increases and the same happens if the demand is very low, the number of instances will decrease but always above the min number

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

    How did you make that architecture diagram please explain

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

      I keep the things simple and use power point for architectural diagrams

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

    Thank you very much Sir for this all AWS Course

  • @etiifiokudofiah7674
    @etiifiokudofiah7674 3 місяці тому

    Your content is so on point. Thanks so much

  • @Selvakumar-jp8he
    @Selvakumar-jp8he 9 місяців тому

    Hi Rahul, Can I know the information about membership, If I join the membership of any (beginner/intermediate), Have you uploaded concept videos there and Do I see that videos? Thanking you.

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

      Not yet there are sessions which includes terraform and aws but in future i am planning to upload more topics

    • @Selvakumar-jp8he
      @Selvakumar-jp8he 9 місяців тому

      Thanks for information@@RahulWagh

  • @kondaiahp4865
    @kondaiahp4865 5 місяців тому

    Thankyou very much sir with
    Simple explanation each and
    Every point

    • @RahulWagh
      @RahulWagh  5 місяців тому

      You are most welcome

  • @Onlycarszone09
    @Onlycarszone09 12 днів тому

    Good but need once more watch to make my own

    • @RahulWagh
      @RahulWagh  11 днів тому

      Sure go ahead

    • @Onlycarszone09
      @Onlycarszone09 11 днів тому

      @@RahulWagh u are doing best , whats advantage of members??

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

    Nice session. Please let me know how to get the Channel membership

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

      Check the description section or you can click on this link - ua-cam.com/channels/7p4oXcPbgk_yTSHK7QlkSg.htmljoin

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

    How lovely you are teaching
    Rahul Da lovely

  • @nitaidas2084
    @nitaidas2084 24 дні тому

    Very nice demo

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

    Hi Rahul! Could you please explain me when the 3rd instance is created by ASG due to more HTTP load, how will the 3rd instance has the same configured application and DATA which are in 1st and 2nds instances ? Usually USER DATA has only information which needs to be installed but not completely configured for production. The 3rd instance will be created as per the Template we create.

    • @RahulWagh
      @RahulWagh  Місяць тому

      Yes it will be based on the template for the 3rd instance

    • @naveensmils1
      @naveensmils1 Місяць тому

      @@RahulWagh Thanks for your reply.. So in that case the 3rd instance template should be a mirrored image of running/Live instances?

  • @RamyaPriya-d4f
    @RamyaPriya-d4f Місяць тому

    One of the best ASG videos

  • @FROYChannel
    @FROYChannel 4 місяці тому

    Very good information

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

    Good

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

    Very good job!

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

    Very detailed video, thanks!

  • @HemalathaR-v7v
    @HemalathaR-v7v 7 місяців тому

    Thank you so much sir🙂

  • @SaifaldeenSAH
    @SaifaldeenSAH 3 місяці тому

    Thanks!

    • @RahulWagh
      @RahulWagh  3 місяці тому

      You made my day 😊

    • @SaifaldeenSAH
      @SaifaldeenSAH 3 місяці тому

      @@RahulWagh You made me do my task professionally, You're so welcome. 😃

    • @RahulWagh
      @RahulWagh  3 місяці тому

      @SaifaldeenSAH so glad to hear that

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

    nice explanation

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

    Great job!

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

      Thanks for the visit

  • @praveenkumar-lr4lb
    @praveenkumar-lr4lb 9 місяців тому

    very nice sir..👌👌

  • @DeshDeepak-wb3bu
    @DeshDeepak-wb3bu 8 місяців тому

    excellent explanation!

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

      Glad it was helpful!

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

    Excellent 🎉

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

      Thank you! Cheers!