I am new to EC2, just finished setting up my micro instance and ready for production.
I want to start w/ 2 medium instances.
How do i assign my elastic IP to both of them so they act as 1? also would they share dB as well?
My visualization is like a pair of raid drives where you have multiple machines acting as 1.
Am i going about it the right way? I have read that you should have 1 more instance than you need for redundancy.
FIX
Finally got Load Balancer
to work on AWS
. the logic I had going into this was off. Seems like it works as 1 instance reaches its max, the LB
directs traffic to another instance.
Route 53
came in very handy for this whole setup.
You can use Amazon's Elastic Load Balancer instead of running your own load balancer instance.
If you want one ip address to go to two servers, you would need a load balancer instance using that one elastic ip address, and it sends the requests to either webserver. Such systems are typically done with HAProxy.