@@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.
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
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
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
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
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?
🎉 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
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?
@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.
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 - th-cam.com/play/UUMO7p4oXcPbgk_yTSHK7QlkSg.html You can join also with - th-cam.com/channels/7p4oXcPbgk_yTSHK7QlkSg.htmljoin
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.
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.
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
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
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
@@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
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.
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
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.
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
#!/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
Bro I want to run a python script how to go with that using autoscaling
Why in Indian region we have to use Cloudboothook . Why this simple bin/bash dosent work so smoothly ?
@@SBtt24 wdym? I am following this tutorial rn could you please inform me of the changes to make for people in Indian region
@@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.
I must say, this is one of the best ASG's set up tutorial out here.
Crisp and clear explanation in layman's term
Very well explained Rahul. The graphical representation really helps put things into perspective.
This has to be the best AWS tutorial ever come across, Thanks @Raul
Glad it was helpful!
very good explanation Rahul ...thanks 👌
One of the best ASG videos
You are welcome
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
Excellent Content Dear Rahul ,Thank You So much ..
How lovely you are teaching
Rahul Da lovely
You are welcome
Yoo I am new to AWS but this tutorial is fire!!! Thank you
Glad you liked it!!
Thankyou very much sir with
Simple explanation each and
Every point
You are most welcome
Thank you very much Sir for this all AWS Course
You are welcome
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
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
You are most welcome
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
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?
🎉 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
Auto scaling support which type of scaling policy it's vertical or horizontal scaling?
It is an horizontal scaling because we are increasing and decreasing the number of instances
Your content is so on point. Thanks so much
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
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?
Good explanation 👏
Glad you liked it
Very nice demo
Glad you liked it!
After doing the exact configuration, I'm getting "502 bad Gateway" I do not understand why.
How will my nodejs code be deployed from github to these auto-scaled instances?
Hello sir ,
Ur videos r amazing.
But try to show how to delete this all .
Thank you for this u r valuable information..I want to autoscaling group in diffrent region..can you tell me
@trendymusic8866 please follow the complete series and also you have a time stamp in the description to skip the initial setup
How may you plan the IP Addressing for a VPC and the related Sub-Nets?
@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.
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
Where do we requested that what type of instances we want on demand or Spot instance.
Very detailed video, thanks!
You're welcome!
Try to make a video on AUTOMATIC SCALING. Please
Sir in part 9 You said ALB is inside VPC and here 0:33 you saying LB will call VPC, I am confused.......
google owner teaching on aws
Hahaha no I am Rahul
why it show 502 bad gateway when i hit load balancer DNS
facing same issue
@@darshandarshuu2841 Same issue
If possible can you please explain instance refresh for ASG.
Can you please start terraform to provision these all activities....
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 - th-cam.com/play/UUMO7p4oXcPbgk_yTSHK7QlkSg.html
You can join also with - th-cam.com/channels/7p4oXcPbgk_yTSHK7QlkSg.htmljoin
excellent explanation!
Glad it was helpful!
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.
You need to enabled the https and also need to setup certificates for this
how can we connect private subnet instances with ALB, is it possible?
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.
Yes it will be based on the template for the 3rd instance
@@RahulWagh Thanks for your reply.. So in that case the 3rd instance template should be a mirrored image of running/Live instances?
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
Yes it is possible to do that
Very good information
So nice of you
Nice session. Please let me know how to get the Channel membership
Check the description section or you can click on this link - th-cam.com/channels/7p4oXcPbgk_yTSHK7QlkSg.htmljoin
I want to know if suddnly high traffic come how to resolve this issues?
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
nice explanation
Keep watching
my health status was unhealthy any reason ?
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
Very good job!
very nice sir..👌👌
Keep watching
what was the use of min and max . When will no of instances reach maximum or minimum
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
Hi thank you for the awesome explanation. Is it possible to create autoscaling group instances in private subnet?
Yes it is possible in the private subnet as well
@@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?
@@khopithansathiyakeerthy4598 you first need a target group and then loadbalancer after that you should be able to connect
@@RahulWagh Thank you
@@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
Thank you so much sir🙂
Most welcome
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.
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
Can I deploy spring boot application jar file same way you did
Yes you can
How did you make that architecture diagram please explain
I keep the things simple and use power point for architectural diagrams
Great job!
Thanks for the visit
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.
Not yet there are sessions which includes terraform and aws but in future i am planning to upload more topics
Thanks for information@@RahulWagh
What case we use load balancer and Autoscaling?
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
Excellent 🎉
Thank you! Cheers!
When I run the dns that I copied from the load balancer I got 502 error why..can any one please explain it
Your web server is not working or start the apache or nginx server
i want to join your zoom class
Good but need once more watch to make my own
Sure go ahead
@@RahulWagh u are doing best , whats advantage of members??
Thanks!
You made my day 😊
@@RahulWagh You made me do my task professionally, You're so welcome. 😃
@SaifaldeenSAH so glad to hear that
Good
Hii
I am getting 502 Bad gatewayError whats might be the reason
There could multiple issues for example security group, target group mapping ec2 instance subnet. Check everything one by one
@@RahulWagh facing 502 bad gateway issue
@@RahulWagh checked everything. nothing works
can anybody copy paste the user data script which is used by him?
#!/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