[SERVER-62853] Report configured chunk size in collectionBalancerStatus Created: 21/Jan/22  Updated: 29/Oct/23  Resolved: 17/Feb/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0-rc1

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Paolo Polato
Resolution: Fixed Votes: 0
Labels: neweng, shardingemea-qw
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.3
Sprint: Sharding EMEA 2022-02-21
Participants:
Story Points: 9

 Description   

The chunk size for a specific collection is calculated according to the following rules in order of precedence:

  1. The collection specific chunk size maxChunkSizeBytes field in config.collection if set
  2. The global chunk size setting in config.settings.chunkSize if set
  3. The default global chunk size setting

So currently it is not straightforward for a user checking which is the currently configured chunk size setting for a specific collection. 
My proposal is to expose such information in the collectionBalancerStatus output, taking into account the 3 rules listed above.



 Comments   
Comment by Githook User [ 18/Feb/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-62853 Report maxChunkSize in balancerCollectionStatus()

(cherry picked from commit eee82fa3dc2b0e370a21f9855b74b30937dd859c)
Branch: v5.3
https://github.com/mongodb/mongo/commit/59e5dbbc35d780fb85f9e1d8c3a0a3e36ff685c6

Comment by Githook User [ 16/Feb/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-62853 Report maxChunkSize in balancerCollectionStatus()
Branch: master
https://github.com/mongodb/mongo/commit/eee82fa3dc2b0e370a21f9855b74b30937dd859c

Generated at Thu Feb 08 05:56:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.