[DOCS-2625] Fix Balancer Policy Behavor Description for Tag-Aware Sharding Created: 30/Jan/14  Updated: 25/Feb/14  Resolved: 25/Feb/14

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

Type: Improvement Priority: Minor - P4
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/core/tag-aware-sharding/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36
Screen Resolution: 1920 x 1080
repo: docs
source: core/tag-aware-sharding


Issue Links:
Related
Participants:
Days since reply: 9 years, 51 weeks, 1 day ago

 Description   

The note

"Note If the chunks in sharded collection are already balanced, then the balancer will not migrate any chunks. If chunks in a sharded collection are not balanced, the balancer migrates chunks in tagged ranges to shards associated with those tags."

is incorrect. During a balancing round, determining if any tag violations exist takes precedence over whether chunks are evenly distributed or not.

From "balancer_policy.cpp"

    MigrateInfo* BalancerPolicy::balance( const string& ns,
                                          const DistributionStatus& distribution,
                                          int balancedLastTime ) {
 
 
        // 1) check for shards that policy require to us to move off of:
        //    draining only
        // 2) check tag policy violations
        // 3) then we make sure chunks are balanced for each tag



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

Author:

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

Message: DOCS-2625: edit note about old behavior
Branch: master
https://github.com/mongodb/docs/commit/36a3db106256714f8e3212ec797109d5563a25e1

Comment by Githook User [ 25/Feb/14 ]

Author:

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

Message: DOCS-2625: edit note about old behavior
Branch: v2.4
https://github.com/mongodb/docs/commit/8393144382f294afc2fe0a20c7649bf3bab64cbb

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