Reputation: 1
I have deployed my application on amazon ec2. I have installed tomcat and mysql on ec2 instance. What will happen if auto scale creates new instance? will it copy tomcat and mysql on new instance? Appreciate the answer provided.
Thanks Inderjeet
Upvotes: 0
Views: 180
Reputation: 269091
Auto Scaling requires you to define a Launch Configuration.
The Launch Configuration tells Auto Scaling how to launch new instances. It includes:
Therefore, if you want software to be installed on an instance that is created by Auto Scaling, you can do it via two methods:
Upvotes: 1
Reputation: 1
You can install and setup tomcat in ec2.and then create an ami. Then attach that ami to auto scalling configuration. Also you need to write a statup script that will get updated code on tomcat. And use rds for mysql.
Upvotes: 0
Reputation: 200436
No it won't automatically copy any of that. You need to move your database outside the autoscaling group, probably into RDS. And you need to configure startup scripts that will install your application on a new instance, or create a custom AMI for the autoscaling group to use.
Upvotes: 1