[SERVER-65816] Change balancer policy to balance on data size rather than number of chunks Created: 20/Apr/22  Updated: 01/Dec/23  Resolved: 19/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.3, 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
causes SERVER-66827 Balancer may skip a round if last ran... Closed
causes SERVER-73398 Invariant may be hit when downgrading... Closed
causes SERVER-75481 Consider ideal data size when balancing Closed
causes SERVER-83775 Do not balance data between shards ow... Closed
Related
related to SERVER-66677 Fix clang_tidy error on enterprise-rh... Closed
related to SERVER-70852 Recommit SERVER-66716 on v6.0 Closed
related to DOCS-15340 [Server] Document change of balancing... Closed
is related to SERVER-66378 Adapt tests skipped when featureFlagB... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0
Sprint: Sharding EMEA 2022-05-02, Sharding EMEA 2022-05-16, Sharding EMEA 2022-05-30
Participants:
Linked BF Score: 150

 Description   

Make the balancer retrieve stats from the BalancerStatsRegistry to take decisions: from balancing based on number of chunks to balancing based on actual collection size on each shard (excluding orphans).



 Comments   
Comment by Githook User [ 14/Oct/22 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-65816 Change balancer policy to balance on data size rather than number of chunks
Branch: v6.0
https://github.com/mongodb/mongo/commit/7b450643b3bdfb402de5fceb26b076e8a72dc17f

Comment by Githook User [ 19/May/22 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-65816 Change balancer policy to balance on data size rather than number of chunks
Branch: master
https://github.com/mongodb/mongo/commit/9e4f58aa6bb73cbcd7e3f9f5a6dbcbc5c88b8254

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