-
Type: Task
-
Resolution: Done
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
After reading the documentation, I was slightly confused by what the values for "bounds" should be.
http://docs.mongodb.org/manual/reference/command/moveChunk/
Can you add an example what the call should look like?
The bounds should be something like:
[ { "_id" : "minKey"}, { "_id" : "maxKey"}]
The _id is the field that is hashed (i.e., the shard key) and values are the min/max keys.
This comes from the raw chunk document:
mongos> db.chunks.findOne(); { "_id" : "mmsdbdays.data.rrdDays-_id_\"00\"", "lastmod" : { "t" : 963, "i" : 0 }, "lastmodEpoch" : ObjectId("519112d41b63763dc7582ac9"), "ns" : "mmsdbdays.data.rrdDays", "min" : { "_id" : "00" }, "max" : { "_id" : "00b166d41e1814fefcf84424acf7e18a-153cf1c2fc605a1e4ce86238c4b4d76a-201207-btree.missRatio-indexCounters" }, "shard" : "mmsrs5" }