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

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

For general information about how sharding works:

For some instructions on how to set up clustering on a single machine, see here: and here:

share|improve this answer

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

Try this mongodb-admin (command line)

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

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.