Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
2  
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

1 Answer 1

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

 
discard

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.