[DOCS-1602] Add an example to moveChunk Created: 04/Jun/13  Updated: 28/Aug/13  Resolved: 20/Aug/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Ryan Nitz Assignee: Zack Brown
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 25 weeks, 2 days ago

 Description   

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"
}



 Comments   
Comment by auto [ 26/Aug/13 ]

Author:

{u'username': u'Zackrobat', u'name': u'Zack Brown', u'email': u'zack.brown@10gen.com'}

Message: DOCS-1602: Add an example to moveChunk

Signed-off-by: Sam Kleinman <samk@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/a1a02f0ef0eb2da448ed40ec92f7ff8617c4171e

Generated at Thu Feb 08 07:41:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.