[DOCS-990] Document bounds parameter of moveChunk Created: 15/Jan/13  Updated: 04/Mar/23  Due: 28/Feb/13  Resolved: 01/Apr/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: mongodb-2.4

Type: Task Priority: Major - P3
Reporter: Ed Costello Assignee: Ed Costello
Resolution: Done Votes: 0
Labels: sharding
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-7674 MoveChunk should allow you to specify... Closed
Duplicate
is duplicated by DOCS-1043 moveChunk and split commands have/wil... Closed
Related
is related to SERVER-8187 Usability issues with splitting + has... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
DOCS-1221 moveChunk find parameter needs additi... Sub-task Closed Ed Costello  
Participants:
Days since reply: 10 years, 46 weeks, 5 days ago

 Description   

bounds allows one to specify a chunk by lower and upper bounds.

e.g.

db.adminCommand({moveChunk : "test.foo" , bounds : [ {a : NumberLong("8234")} , { "a" : NumberLong("9543") } ] , to : "shard0001"})

+ split command to have bounds parameter as well (from DOCS-1043)



 Comments   
Comment by auto [ 29/Mar/13 ]

Author:

{u'date': u'2013-03-29T15:20:23Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-990 edits
Branch: master
https://github.com/mongodb/docs/commit/8be0d4aa61b3e9ddb7593a4da299c084f938e05c

Comment by auto [ 29/Mar/13 ]

Author:

{u'date': u'2013-03-15T19:50:31Z', u'name': u'Ed Costello', u'email': u'epc@10gen.com'}

Message: DOCS-990 bounds parameter in movechunk, doc'd splitchunk as well

note that splitChunk does not support bounds AFAICT
incorporate Sam's comments from codereview

Updated with changes from samk, greg

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

Comment by Sam Kleinman (Inactive) [ 07/Feb/13 ]

moveChunk and split commands will have a new field added (think it'll be "bounds" in both cases, but still in-review) to allow better selection and splitting of chunks with hashed shard keys. We need to doc this new field (not sure if in a new 2.4 branch or everywhere with version noted?).

Problem with hashed shard keys is that it's non-trivial to figure out which chunk a key will hash to, so using "find" with a document to select a chunk for moving or splitting is not very useful.

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