Timelines:
00:00 - Introduction.
01:17 - Steps to take.
01:53 - Create MySQL DB using RDS snapshot.
02:42 - Create Launch template for ASG (Auto scaling group).
04:00 - Create ASG (Auto scaling group).
11:36 - Verifying and browsing Laravel application on ASG created EC2.
12:19 - Verifying and browsing Laravel application via loadbalancer (ALB).
15:50 - Increasing CPU Load using utility named as "Stress".
19:36 - Checking ASG created 2nd EC2.
20:20 - Accessing application via the Loadbalancer which distributing load to 2 EC2.
20:40 - Checking when ASG will initiate scale-in (terminate the 2nd instance).
21:24 - Explaining using architecture diagram that how auto scaling works with our application.
24:17 - Conclusion
🔗 Useful Links:
Repo: https://github.com/k8snative/laravelblogapp
Script and Commands: https://docs.google.com/document/d/1AVRLWCkwyOXPIovB88lPwA9AYCIUa0QYfuYp8v469nw/edit?usp=sharing
Scaling your Laravel application automatically is crucial for handling traffic spikes and ensuring high availability. In this tutorial, I’ll walk you through setting up an Auto Scaling Group (ASG) on AWS using an EC2 image with a preconfigured Laravel application. We’ll attach it to an Application Load Balancer (ALB) to distribute traffic efficiently between multiple instances. 🚀
📌 What You’ll Learn in This Video:
✅ Create an EC2 AMI (Image) of your Laravel application
✅ Set up an Auto Scaling Group (ASG) for automatic instance scaling
✅ Attach the ASG to an Application Load Balancer (ALB)
✅ Configure target groups for dynamic EC2 instance registration
✅ Test the scalability and high availability of your Laravel app
By the end of this tutorial, your Laravel application will scale automatically based on demand, ensuring better performance and cost efficiency.
🔗 Related Videos:
🎥 AWS ALB & Target Group Setup →
https://youtu.be/iHj774vWW6A
🎥 Deploy Laravel on AWS EC2 →
https://youtu.be/dB5DD-3d1JY
💡 Stay Connected!
🔔 Subscribe for more DevOps & AWS tutorials → https://www.youtube.com/@farrukhfida212/featured
💬 Have questions? Drop them in the comments!
👍 Like & share if you found this helpful!
#AWS #AutoScaling #Laravel #DevOps #AWSALB #AWSASG #CloudComputing #Scalability #EC2 #RDS
#laravel #devops #ec2 #rds #clouddeployment #mysql #awsrds #aws #awstutorial #awstutorialforbeginners #ubuntu #ubuntutraining #ubuntututorial #ubuntulinux #devopstutorial #ubuntulinux #ubuntuserver