top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Minimum on what data size Sharding is recommended in MongoDB

+1 vote
241 views

Minimum on what data size Sharding is recommended in MongoDB? Suppose my database size is 1 GB is sharding necessary? if I do not create shard will that work for me, for this data size.

posted Jun 14, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

The decision to enable sharding in your environment isn’t a matter of size so much as it is for scaling to meet demand.
Sharding is especially useful for very large datasets with very high throughput requirements. Sharding provides horizontal scaling that allows you to store and retrieve the data across multiple machines in your environment so that the query load is spread out and reducing the overhead on any one single server. With sharding, you add more machines to support data growth and the demands of reads & writes that your traffic requires.
As for when to shard your data, you would want to get ahead of the problem and enable sharding as soon as the requirement to scale is known. Once you make the decision to shard your data, it is important to perform the necessary capacity planning to ensure that you don’t hit a system performance wall at the most inconvenient time.
Credits : https://groups.google.com/forum/embed/#!topic/mongodb-user/C5x80X6ozHY

answer Jun 26, 2016 by Shivam Kumar Pandey
Similar Questions
0 votes

I have implemented sharding for two collections based on a column which is not indexed. Now after checking sh.status(), I can see all the data is saving in primary shard only. Data is not distributing among the other shard servers. What to do?

+1 vote

Does anyone know how I remove orphaned documents in a cluster (sharding) in mongodb version 3.0.10, My actual data are 20 million orphans and documents the value amounts to 21 million data

+2 votes

Please tell me how can we resolve this issue, we are using aggregation and size of docs become greater than 16MB. We also tried "ALLOWDISKUSE = TRUE" but still its throwing same error.

We are using php to fetch data greater than 16MB. Let me know if you needed more info.

...