ALL COVERED TOPICS

NoSQL Benchmarks NoSQL use cases NoSQL Videos NoSQL Hybrid Solutions NoSQL Presentations Big Data Hadoop MapReduce Pig Hive Flume Oozie Sqoop HDFS ZooKeeper Cascading Cascalog BigTable Cassandra HBase Hypertable Couchbase CouchDB MongoDB OrientDB RavenDB Jackrabbit Terrastore Amazon DynamoDB Redis Riak Project Voldemort Tokyo Cabinet Kyoto Cabinet memcached Amazon SimpleDB Datomic MemcacheDB M/DB GT.M Amazon Dynamo Dynomite Mnesia Yahoo! PNUTS/Sherpa Neo4j InfoGrid Sones GraphDB InfiniteGraph AllegroGraph MarkLogic Clustrix CouchDB Case Studies MongoDB Case Studies NoSQL at Adobe NoSQL at Facebook NoSQL at Twitter

NAVIGATE MAIN CATEGORIES

Close

MongoDB Tip: Manual Shard Balancing

Every once in a while though, data chunks go out of balance. The Mongo team is working on making the auto-rebalancing a little more intelligent in future releases. In the meantime, you can manually move chunks around between shards to keep things in balance if needed.

As per the article the trick is accomplished using:

db.runCommand( {
    moveChunk : [namespace],
    find : [data spec],
    from : [source shard],
    to : [destination shard]
} )

Original title and link: MongoDB Tip: Manual Shard Balancing (NoSQL databases © myNoSQL)

via: http://www.nomadjourney.com/2010/11/mongodb-tip-moving-chunks-between-shards/