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

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 124

  • @RahulWagh
    @RahulWagh  7 месяцев назад +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.

  • @ShamsuddeenAbdulkadir
    @ShamsuddeenAbdulkadir 5 месяцев назад +6

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

  • @albertndege5596
    @albertndege5596 2 месяца назад +2

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

    • @RahulWagh
      @RahulWagh  2 месяца назад

      Glad it was helpful!

  • @rajendrawarrier7274
    @rajendrawarrier7274 8 месяцев назад +4

    Crisp and clear explanation in layman's term

  • @kokopopart5173
    @kokopopart5173 4 месяца назад +1

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

  • @shivadheeravath-so3pu
    @shivadheeravath-so3pu 2 месяца назад

    Excellent Content Dear Rahul ,Thank You So much ..

  • @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

  • @rajbas1628
    @rajbas1628 Месяц назад

    very good explanation Rahul ...thanks 👌

  • @RamyaPriya-d4f
    @RamyaPriya-d4f Месяц назад

    One of the best ASG videos

  • @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?

  • @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

  • @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

  • @kondaiahp4865
    @kondaiahp4865 5 месяцев назад

    Thankyou very much sir with
    Simple explanation each and
    Every point

    • @RahulWagh
      @RahulWagh  5 месяцев назад

      You are most welcome

  • @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

  • @sanasaryuzbashyan4526
    @sanasaryuzbashyan4526 4 месяца назад

    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?

  • @giteshghure212
    @giteshghure212 2 месяца назад

    Thank you very much Sir for this all AWS Course

  • @johncaipa
    @johncaipa 8 месяцев назад +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

  • @HarishKumar-mq1ku
    @HarishKumar-mq1ku Месяц назад

    Good explanation 👏

  • @etiifiokudofiah7674
    @etiifiokudofiah7674 3 месяца назад

    Your content is so on point. Thanks so much

  • @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

  • @ayonsaha6600
    @ayonsaha6600 2 месяца назад

    How lovely you are teaching
    Rahul Da lovely

    • @RahulWagh
      @RahulWagh  2 месяца назад +1

      You are welcome

  • @shubhamshukla4131
    @shubhamshukla4131 4 месяца назад +2

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

  • @nitaidas2084
    @nitaidas2084 26 дней назад

    Very nice demo

  • @travisjae1775
    @travisjae1775 3 месяца назад +1

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

  • @CodeKumar
    @CodeKumar Месяц назад

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

  • @sakshisirsat7493
    @sakshisirsat7493 8 месяцев назад +1

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

  • @chanekyareddy1194
    @chanekyareddy1194 2 месяца назад

    Try to make a video on AUTOMATIC SCALING. Please

  • @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

  • @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

  • @sivav7464
    @sivav7464 7 месяцев назад +8

    google owner teaching on aws

    • @RahulWagh
      @RahulWagh  7 месяцев назад +3

      Hahaha no I am Rahul

  • @siddharthtiwari5314
    @siddharthtiwari5314 2 месяца назад

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

  • @FROYChannel
    @FROYChannel 4 месяца назад

    Very good information

  • @osada96
    @osada96 7 месяцев назад

    Very detailed video, thanks!

    • @RahulWagh
      @RahulWagh  7 месяцев назад

      You're welcome!

  • @aniketsalve768
    @aniketsalve768 5 месяцев назад

    If possible can you please explain instance refresh for ASG.

  • @SarvadnyaRJawle
    @SarvadnyaRJawle 7 месяцев назад

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

  • @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

  • @moulalucky8608
    @moulalucky8608 5 месяцев назад

    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

  • @denzilpeiris492
    @denzilpeiris492 8 месяцев назад

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

  • @anutest
    @anutest 4 месяца назад

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

  • @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 - ruclips.net/p/UUMO7p4oXcPbgk_yTSHK7QlkSg
      You can join also with - ruclips.net/channel/UC7p4oXcPbgk_yTSHK7QlkSgjoin

  • @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

  • @Dineshkamas
    @Dineshkamas 7 месяцев назад +1

    my health status was unhealthy any reason ?

  • @DeshDeepak-wb3bu
    @DeshDeepak-wb3bu 8 месяцев назад

    excellent explanation!

    • @RahulWagh
      @RahulWagh  8 месяцев назад

      Glad it was helpful!

  • @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

  • @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

  • @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

  • @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 - ruclips.net/channel/UC7p4oXcPbgk_yTSHK7QlkSgjoin

  • @manuelprickenpedreira
    @manuelprickenpedreira 8 месяцев назад

    Very good job!

  • @HemalathaR-v7v
    @HemalathaR-v7v 7 месяцев назад

    Thank you so much sir🙂

  • @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

  • @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?

  • @Toralchourasia
    @Toralchourasia 6 месяцев назад

    nice explanation

  • @praveenkumar-lr4lb
    @praveenkumar-lr4lb 9 месяцев назад

    very nice sir..👌👌

  • @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

  • @srinivasaraju8399
    @srinivasaraju8399 Месяц назад

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

  • @busuyijohnson9602
    @busuyijohnson9602 8 месяцев назад

    Great job!

    • @RahulWagh
      @RahulWagh  8 месяцев назад

      Thanks for the visit

  • @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

  • @yaseenbaba3389
    @yaseenbaba3389 8 месяцев назад

    Excellent 🎉

    • @RahulWagh
      @RahulWagh  8 месяцев назад

      Thank you! Cheers!

  • @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

  • @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

  • @Onlycarszone09
    @Onlycarszone09 14 дней назад

    Good but need once more watch to make my own

    • @RahulWagh
      @RahulWagh  14 дней назад

      Sure go ahead

    • @Onlycarszone09
      @Onlycarszone09 13 дней назад

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

  • @santhoshk2590
    @santhoshk2590 8 месяцев назад

    Good

  • @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

  • @KuldeepPawar0908
    @KuldeepPawar0908 7 месяцев назад

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

    • @RahulWagh
      @RahulWagh  7 месяцев назад

      #!/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