[DOCS-2392] Comment on: "manual/reference/command/shardCollection.txt" Created: 11/Dec/13  Updated: 11/Feb/14  Resolved: 11/Feb/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.1

Type: Improvement Priority: Blocker - P1
Reporter: Thomas Rueckstiess Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/reference/command/shardCollection/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Screen Resolution: 1440 x 900
repo: docs
source: reference/command/shardCollection


Participants:
Days since reply: 10 years, 1 week, 1 day ago

 Description   

According to my tests on 2.4.8, the limit of numInitialChunks is actually 8192 * number of shards.



 Comments   
Comment by Githook User [ 11/Feb/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2392: adding correct split limit to numInitialChunks
Branch: master
https://github.com/mongodb/docs/commit/74e9fb60b520a3e35744e31dd5a6a3fc68eca85e

Comment by Githook User [ 11/Feb/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2392: adding correct split limit to numInitialChunks
Branch: v2.4
https://github.com/mongodb/docs/commit/90e5b5944f903edede5e0ee80c7434a1171ac1da

Comment by Randolph Tan [ 12/Dec/13 ]

I checked the code and it looks like Thomas is correct. It looks like we don't have any restrictions for numInitialChunks, but we do have a limit of 8192 split points for a single chunk. And that is what the limit the shardCollection command is hitting when it tries to split a chunk in a shard (Basically, the process is split into n shard chunks, move them to each shard and further split them).

In summary, Thomas is correct.

Comment by Sam Kleinman (Inactive) [ 12/Dec/13 ]

I've looked over the code and don't see anything that jumps out at me to support this change. I've followed up with renctan, and he'll confirm.

Cheers,
sam

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