[SERVER-24863] mongo db balancer when there is 1,76,000 entries in tags collection of config database? Created: 01/Jul/16  Updated: 14/Jul/16  Resolved: 05/Jul/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.2.6
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Abhishek Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Participants:

 Description   

am trying tag based sharding in mongo db with tag ranges .Since i do have a range for my shard key .I came up with an idea of adding range for each value of shard key.

ex:

sh.addTagRange( ".",{ shardKey: 1 },{ shardKey: 2 },"tag_name")

Since value 2 of shardKey in the above command is excluded in in the range .The range will cover only 1 value. I do this for all the documents(doc size : 1,76000 docs) . I have 2 tags and 2 shards .Each has only 1 node ie primary node.

When i do this and do sh.startBalancer() .The data is not getting distributed across the shards as per the tag .

Is this approach correct or having such large number of ranges in tags collection of config db is not supported or recommended ?



 Comments   
Comment by Ramon Fernandez Marina [ 05/Jul/16 ]

abhiullals, please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion, questions are best posted on Stack Overflow with the mongodb tag as you already did, or on the mongodb-user group.

Regards,
Ramón.

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