Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When hosting web applications with EC2 is it best practice to use a separate EC2 instance for the database (mongo in this case) or is it ok just to keep the web server and database server on the same instance?

share|improve this question
Mongo shouldn't really be run on one server, period. – ceejayoz Jan 31 '13 at 5:22
Can you elaborate? – The Internet Jan 31 '13 at 5:52
What @ceejayoz means is that fur effective use of Mongo two servers helps to eliminate fault-tolerance concerns. Not to mention improves the in-memory performance of the server as well. – Brent Pabst Jan 31 '13 at 6:59
up vote 2 down vote accepted

Best Practice would be to have separate servers for all your tiers (web, db, etc) and on top of that would be multiple, load-balanced servers to provide durability and fault-tolerance.

If it's a small site and you're not worried about scaling, one box with enough ram and CPU would work, but it's not going to be 'best practice' for sure.

If you want a highly available mongodb service, you'll want separate servers and setup a replica set so you have several mongodb boxes available incase something happens to one.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.