Multiple Amazon EC2 With Load Balancing And MongoDB

amazon ec2amazon-elbmongodb

I have an Amazon EC2 server where we run a webapp and MongoDB.
We want add a second EC2 server and a Load Balancing to the same region. Load Balancing will
redirect all web requests (80 and 443) to the EC2 servers.

Can someone give me some general advises on how to setup MongoDB?

Thanks

Best Answer

You probably dont want to use an ELB. Mongo has its own router that understands mongo's sharding. Here is a starting point:

http://docs.mongodb.org/manual/installation/