user34790
user34790

Reputation: 2036

Auto scaling in amazon ec2

I want to know how auto scaling in amazon ec2 works. I mean lets say I have a huge burst in request then it will automatically launch a new instance. But I initially set up the database and server code in the first instance. So, how does it go to the next instance. Further, if we get a request, how will it be distributed to the new instance. I want to know about this. I have the database in the first instance. Will it be replicated in all of them so that the same information is sent to the users.

Upvotes: 0

Views: 385

Answers (2)

rescue1155
rescue1155

Reputation: 415

To enable auto scaling you need to understand the concept of spot fleets and spot request. Then create a load balancer and a security group.

Once you have understand these terms you can configure / implement procedure for auto scaling.

Upvotes: 0

Brandon Nicoll
Brandon Nicoll

Reputation: 444

Your database server should not be load balanced or auto-scaled, unless the data on it never changes. Load balancing and auto-scaling work best when used as web/app servers that can communicate to a single DB back-end instance.

Upvotes: 1

Related Questions