[DOCS-4380] Comment on: "manual/reference/limits.txt" Created: 18/Nov/14  Updated: 03/Nov/17  Resolved: 05/Dec/14

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

Type: Bug Priority: Major - P3
Reporter: Asya Kamsky 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/limits/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36
Referrer: http://docs.mongodb.org/manual/search/?query=512GB
Screen Resolution: 1680 x 1050
repo: docs
source: reference/limits


Participants:
Days since reply: 9 years, 10 weeks, 5 days ago

 Description   

http://docs.mongodb.org/manual/reference/limits/#Sharding-Existing-Collection-Data-Size

In limits we have a strange table which discusses possible value of shard key 1003 - the limit for shard key size is 512 so we should not be using an invalid shard key size in this example table.



 Comments   
Comment by Githook User [ 05/Dec/14 ]

Author:

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

Message: DOCS-4380: limitation on initial size of sharded collection
Branch: master
https://github.com/mongodb/docs/commit/0d08b60e4c4afd8062c64ea9800f0927d8e8969d

Comment by Randolph Tan [ 05/Dec/14 ]

Sorry for taking so long, the max split points for a 512 byte shard key is: 31588. And that would give you 31 GB for 1 MB chunkSize, and 1.93 TB for 64 MB chunkSize. The doc page didn't explain this, but I think it is important to mention that the estimate limits are for the worst case - the case where the document contains nothing but the shard key values.

It is also a odd that we allow ~1k shard key values to exist as long as they were created before the collection was sharded.

Comment by Randolph Tan [ 01/Dec/14 ]

Let me re run the test with 512 byte shard key.

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