Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I'm going to start using Mongo as a database but I will not have it clustered at first. Can I use Mongo on a single machine, then later come back, cluster it and capitalize on the sharding? Or can I set it up for a cluster with only one machine until I have more to add to the cluster?

share|improve this question
add comment

3 Answers 3

up vote 3 down vote accepted

You can do it either way.

There isn't much benefit to starting all of the overhead for sharding now, unless you simply want to try it out to see how it works. It is important to pick the correct shard key, so you would want to make sure your schema and insert/update usage is firm enough to know what to pick.

Kristina Chodorow has a great blog entry about how to pick a shard key: http://www.snailinaturtleneck.com/blog/2011/01/04/how-to-choose-a-shard-key-the-card-game/

For general information about how sharding works: http://www.snailinaturtleneck.com/blog/2010/03/30/sharding-with-the-fishes/

For some instructions on how to set up clustering on a single machine, see here: http://www.mongodb.org/display/DOCS/A+Sample+Configuration+Session and here: http://www.snailinaturtleneck.com/blog/2010/08/30/return-of-the-mongo-mailbag/

share|improve this answer
add comment

I'm currently using single-server MongoDBs and didn't reach the point where I need to add clustering. MongoDB is efficient enough for most projects. As far as I understand, MongoDB clustering is very easy and add/drop servers doesn't affect the cluster at all.

share|improve this answer
add comment

Try this mongodb-admin (command line) http://code.google.com/p/mongodb-admin/

share|improve this answer
    
Do you mind expanding this answer to explain how this tool addresses the OP's questions? –  Nick Chammas Mar 26 '12 at 20:21
add comment

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.