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

  Рет қаралды 48,513

Rahul Wagh

Rahul Wagh

Күн бұрын

Пікірлер: 138
@RahulWagh
@RahulWagh 11 ай бұрын
#!/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 8 ай бұрын
Bro I want to run a python script how to go with that using autoscaling
@SBtt24
@SBtt24 7 ай бұрын
Why in Indian region we have to use Cloudboothook . Why this simple bin/bash dosent work so smoothly ?
@vaibhavdesai7001
@vaibhavdesai7001 7 ай бұрын
@@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 7 ай бұрын
​@@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 10 ай бұрын
I must say, this is one of the best ASG's set up tutorial out here.
@rajendrawarrier7274
@rajendrawarrier7274 Жыл бұрын
Crisp and clear explanation in layman's term
@albertndege5596
@albertndege5596 6 ай бұрын
This has to be the best AWS tutorial ever come across, Thanks @Raul
@RahulWagh
@RahulWagh 6 ай бұрын
Glad it was helpful!
@MishadAhamed-j6k
@MishadAhamed-j6k Ай бұрын
Flowing like clear water. Each step very clear and straight forward. Thank you
@RahulWagh
@RahulWagh Ай бұрын
you are welcome
@kokopopart5173
@kokopopart5173 9 ай бұрын
Very well explained Rahul. The graphical representation really helps put things into perspective.
@SaifaldeenSAH
@SaifaldeenSAH 7 ай бұрын
Thanks!
@RahulWagh
@RahulWagh 7 ай бұрын
You made my day 😊
@SaifaldeenSAH
@SaifaldeenSAH 7 ай бұрын
@@RahulWagh You made me do my task professionally, You're so welcome. 😃
@RahulWagh
@RahulWagh 7 ай бұрын
@SaifaldeenSAH so glad to hear that
@pratasaiprasad1109
@pratasaiprasad1109 2 ай бұрын
ONE OF THE BEST auto scaling explanation sir thank you very much
@RahulWagh
@RahulWagh Ай бұрын
You are welcome
@johncaipa
@johncaipa Жыл бұрын
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
@RamyaPriya-d4f
@RamyaPriya-d4f 5 ай бұрын
One of the best ASG videos
@RahulWagh
@RahulWagh 5 ай бұрын
You are welcome
@kaycay014
@kaycay014 6 ай бұрын
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 6 ай бұрын
You are most welcome
@rajbas1628
@rajbas1628 6 ай бұрын
very good explanation Rahul ...thanks 👌
@BenNoyes-y7z
@BenNoyes-y7z Ай бұрын
when creating the target group, shouldn't port 80 be set as something else? As port 80 is restricted.
@RahulWagh
@RahulWagh Ай бұрын
Yes you can set it to something else
@rocktech2359
@rocktech2359 8 ай бұрын
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
@abnerbrillient1
@abnerbrillient1 3 ай бұрын
Yoo I am new to AWS but this tutorial is fire!!! Thank you
@RahulWagh
@RahulWagh 3 ай бұрын
Glad you liked it!!
@shivadheeravath-so3pu
@shivadheeravath-so3pu 6 ай бұрын
Excellent Content Dear Rahul ,Thank You So much ..
@milon27
@milon27 Жыл бұрын
🎉 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
@subhashismohanty5420
@subhashismohanty5420 5 ай бұрын
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?
@sanasaryuzbashyan4526
@sanasaryuzbashyan4526 8 ай бұрын
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?
@ayonsaha6600
@ayonsaha6600 6 ай бұрын
How lovely you are teaching Rahul Da lovely
@RahulWagh
@RahulWagh 6 ай бұрын
You are welcome
@sivabenguluru1241
@sivabenguluru1241 Жыл бұрын
Auto scaling support which type of scaling policy it's vertical or horizontal scaling?
@RahulWagh
@RahulWagh Жыл бұрын
It is an horizontal scaling because we are increasing and decreasing the number of instances
@HarishKumar-mq1ku
@HarishKumar-mq1ku 5 ай бұрын
Good explanation 👏
@RahulWagh
@RahulWagh 5 ай бұрын
Glad you liked it
@giteshghure212
@giteshghure212 6 ай бұрын
Thank you very much Sir for this all AWS Course
@RahulWagh
@RahulWagh 6 ай бұрын
You are welcome
@ahmedsalahel-din1311
@ahmedsalahel-din1311 7 ай бұрын
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
@kondaiahp4865
@kondaiahp4865 9 ай бұрын
Thankyou very much sir with Simple explanation each and Every point
@RahulWagh
@RahulWagh 9 ай бұрын
You are most welcome
@rosh137
@rosh137 2 ай бұрын
Video is very helpful, but please discuss errors also as I was getting “502 Bad Gateway” error and later “503 Service Temporarily Unavailable” error not sure how to resolve this
@etiifiokudofiah7674
@etiifiokudofiah7674 7 ай бұрын
Your content is so on point. Thanks so much
@nitaidas2084
@nitaidas2084 5 ай бұрын
Very nice demo
@RahulWagh
@RahulWagh 5 ай бұрын
Glad you liked it!
@enjoylife8199
@enjoylife8199 9 ай бұрын
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 9 ай бұрын
Yes it is possible to do that
@siddharthtiwari5314
@siddharthtiwari5314 6 ай бұрын
How will my nodejs code be deployed from github to these auto-scaled instances?
@shubhamshukla4131
@shubhamshukla4131 8 ай бұрын
why it show 502 bad gateway when i hit load balancer DNS
@darshandarshuu2841
@darshandarshuu2841 8 ай бұрын
facing same issue
@vaibhavdesai7001
@vaibhavdesai7001 7 ай бұрын
@@darshandarshuu2841 Same issue
@anutest
@anutest 8 ай бұрын
how can we connect private subnet instances with ALB, is it possible?
@trendlines7098
@trendlines7098 11 ай бұрын
@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 11 ай бұрын
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
@SarvadnyaRJawle
@SarvadnyaRJawle 11 ай бұрын
Where do we requested that what type of instances we want on demand or Spot instance.
@kaustubh1248
@kaustubh1248 Ай бұрын
what cab be the reason of having bad gateway error while accessing load balancer dns ?
@RahulWagh
@RahulWagh Ай бұрын
There could be multitude of reasons please check ports and listeners config
@denzilpeiris492
@denzilpeiris492 Жыл бұрын
How may you plan the IP Addressing for a VPC and the related Sub-Nets?
@osada96
@osada96 11 ай бұрын
Very detailed video, thanks!
@RahulWagh
@RahulWagh 11 ай бұрын
You're welcome!
@CodeKumar
@CodeKumar 5 ай бұрын
Sir in part 9 You said ALB is inside VPC and here 0:33 you saying LB will call VPC, I am confused.......
@khopithansathiyakeerthy4598
@khopithansathiyakeerthy4598 11 ай бұрын
Hi thank you for the awesome explanation. Is it possible to create autoscaling group instances in private subnet?
@RahulWagh
@RahulWagh 11 ай бұрын
Yes it is possible in the private subnet as well
@khopithansathiyakeerthy4598
@khopithansathiyakeerthy4598 11 ай бұрын
@@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 11 ай бұрын
@@khopithansathiyakeerthy4598 you first need a target group and then loadbalancer after that you should be able to connect
@khopithansathiyakeerthy4598
@khopithansathiyakeerthy4598 11 ай бұрын
@@RahulWagh Thank you
@khopithansathiyakeerthy4598
@khopithansathiyakeerthy4598 11 ай бұрын
@@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
@bhardwaj_abhi3421
@bhardwaj_abhi3421 11 ай бұрын
what was the use of min and max . When will no of instances reach maximum or minimum
@ToldosRanchoDeVilla
@ToldosRanchoDeVilla 11 ай бұрын
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
@Toralchourasia
@Toralchourasia 11 ай бұрын
nice explanation
@RahulWagh
@RahulWagh 11 ай бұрын
Keep watching
@sakshisirsat7493
@sakshisirsat7493 Жыл бұрын
Hello sir , Ur videos r amazing. But try to show how to delete this all .
@FROYChannel
@FROYChannel 8 ай бұрын
Very good information
@RahulWagh
@RahulWagh 8 ай бұрын
So nice of you
@travisjae1775
@travisjae1775 7 ай бұрын
After doing the exact configuration, I'm getting "502 bad Gateway" I do not understand why.
@praveenkumar-lr4lb
@praveenkumar-lr4lb Жыл бұрын
very nice sir..👌👌
@RahulWagh
@RahulWagh Жыл бұрын
Keep watching
@sivav7464
@sivav7464 11 ай бұрын
google owner teaching on aws
@RahulWagh
@RahulWagh 11 ай бұрын
Hahaha no I am Rahul
@vinaykommu9761
@vinaykommu9761 6 ай бұрын
Thank you for this u r valuable information..I want to autoscaling group in diffrent region..can you tell me
@RahulWagh
@RahulWagh 6 ай бұрын
@trendymusic8866 please follow the complete series and also you have a time stamp in the description to skip the initial setup
@HemalathaR-v7v
@HemalathaR-v7v 11 ай бұрын
Thank you so much sir🙂
@RahulWagh
@RahulWagh 11 ай бұрын
Most welcome
@DeshDeepak-wb3bu
@DeshDeepak-wb3bu Жыл бұрын
excellent explanation!
@RahulWagh
@RahulWagh Жыл бұрын
Glad it was helpful!
@aniketsalve768
@aniketsalve768 9 ай бұрын
If possible can you please explain instance refresh for ASG.
@AmrutaWagh-kb3yv
@AmrutaWagh-kb3yv Жыл бұрын
I want to know if suddnly high traffic come how to resolve this issues?
@RahulWagh
@RahulWagh Жыл бұрын
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
@moulalucky8608
@moulalucky8608 9 ай бұрын
What case we use load balancer and Autoscaling?
@RahulWagh
@RahulWagh 9 ай бұрын
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
@busuyijohnson9602
@busuyijohnson9602 Жыл бұрын
Great job!
@RahulWagh
@RahulWagh Жыл бұрын
Thanks for the visit
@mararbinu
@mararbinu Жыл бұрын
Nice session. Please let me know how to get the Channel membership
@RahulWagh
@RahulWagh Жыл бұрын
Check the description section or you can click on this link - kzbin.info/door/7p4oXcPbgk_yTSHK7QlkSgjoin
@kmadanofficial
@kmadanofficial 10 ай бұрын
How did you make that architecture diagram please explain
@RahulWagh
@RahulWagh 10 ай бұрын
I keep the things simple and use power point for architectural diagrams
@Selvakumar-jp8he
@Selvakumar-jp8he Жыл бұрын
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 Жыл бұрын
Not yet there are sessions which includes terraform and aws but in future i am planning to upload more topics
@Selvakumar-jp8he
@Selvakumar-jp8he Жыл бұрын
Thanks for information@@RahulWagh
@manojgandham-lu7tu
@manojgandham-lu7tu Жыл бұрын
Can you please start terraform to provision these all activities....
@RahulWagh
@RahulWagh Жыл бұрын
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 - kzbin.info/aero/UUMO7p4oXcPbgk_yTSHK7QlkSg You can join also with - kzbin.info/door/7p4oXcPbgk_yTSHK7QlkSgjoin
@yaseenbaba3389
@yaseenbaba3389 Жыл бұрын
Excellent 🎉
@RahulWagh
@RahulWagh Жыл бұрын
Thank you! Cheers!
@srinivasaraju8399
@srinivasaraju8399 5 ай бұрын
Can I deploy spring boot application jar file same way you did
@RahulWagh
@RahulWagh 5 ай бұрын
Yes you can
@vinod-qg5eb
@vinod-qg5eb 10 ай бұрын
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 10 ай бұрын
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
@chanekyareddy1194
@chanekyareddy1194 7 ай бұрын
Try to make a video on AUTOMATIC SCALING. Please
@Dineshkamas
@Dineshkamas 11 ай бұрын
my health status was unhealthy any reason ?
@muhammednazil333
@muhammednazil333 6 ай бұрын
When I run the dns that I copied from the load balancer I got 502 error why..can any one please explain it
@blackhunter8571
@blackhunter8571 4 ай бұрын
Your web server is not working or start the apache or nginx server
@Diffplay
@Diffplay 10 ай бұрын
Hii I am getting 502 Bad gatewayError whats might be the reason
@RahulWagh
@RahulWagh 10 ай бұрын
There could multiple issues for example security group, target group mapping ec2 instance subnet. Check everything one by one
@darshandarshuu2841
@darshandarshuu2841 8 ай бұрын
@@RahulWagh facing 502 bad gateway issue
@vaibhavdesai7001
@vaibhavdesai7001 7 ай бұрын
@@RahulWagh checked everything. nothing works
@naveensmils1
@naveensmils1 5 ай бұрын
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 5 ай бұрын
Yes it will be based on the template for the 3rd instance
@naveensmils1
@naveensmils1 5 ай бұрын
@@RahulWagh Thanks for your reply.. So in that case the 3rd instance template should be a mirrored image of running/Live instances?
@Onlycarszone09
@Onlycarszone09 4 ай бұрын
Good but need once more watch to make my own
@RahulWagh
@RahulWagh 4 ай бұрын
Sure go ahead
@Onlycarszone09
@Onlycarszone09 4 ай бұрын
@@RahulWagh u are doing best , whats advantage of members??
@learnnetworkingwithmohan8841
@learnnetworkingwithmohan8841 8 ай бұрын
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
@shafiur92
@shafiur92 3 ай бұрын
i want to join your zoom class
@santhoshk2590
@santhoshk2590 Жыл бұрын
Good
@arunaarumugam6970
@arunaarumugam6970 2 ай бұрын
If anyone is facing the issue while connecting to the webpage, like "This site can’t be reached. Took too long to respond," ensure that it is connecting through HTTP, not HTTPS.
@RahulWagh
@RahulWagh 2 ай бұрын
You need to enabled the https and also need to setup certificates for this
@KuldeepPawar0908
@KuldeepPawar0908 11 ай бұрын
can anybody copy paste the user data script which is used by him?
@RahulWagh
@RahulWagh 11 ай бұрын
#!/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
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
What is a Hypervisor?
6:32
IBM Technology
Рет қаралды 217 М.
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 66 МЛН
NGINX Explained - What is Nginx
14:32
TechWorld with Nana
Рет қаралды 332 М.
AWS IAM User  - Step-by-Step Tutorial (Part-1)
26:14
Rahul Wagh
Рет қаралды 87 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН