1

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

Marco C
  • 153
  • 9
  • Some useful stuff here: http://docs.mongodb.org/manual/tutorial/deploy-geographically-distributed-replica-set/ – Marco C Oct 03 '13 at 04:10

2 Answers2

1

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/

Alex
  • 256
  • 1
  • 2
1

Set up MongoDB on its own EC2 instance separate from the web-facing ones that are behind the ELB. This way, going forward you can increase the capacity of either resource without impacting the performance of your webapp. MongoDB understands sharding and can scale quite well, and the ELB on the web-side will help with that.

Nathan C
  • 15,059
  • 4
  • 43
  • 62