[SERVER-41195] Turn off auto-splitting when the balancer is turned off Created: 16/May/19  Updated: 29/Oct/23  Resolved: 24/Jun/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.2.0-rc5, 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Randolph Tan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Documented
is documented by DOCS-12880 Investigate changes in SERVER-41195: ... Closed
Backwards Compatibility: Minor Change
Backport Requested:
v4.2
Sprint: Sharding 2019-06-17, Sharding 2019-07-01
Participants:

 Description   

Currently, turning off the balancer doesn't turn off auto-splitting, which has caused confusion in the field, because customers continue to observe metadata refreshes. For better customer experience we should also turn off auto-splitting, when the balancer is turned off.

Since it almost never makes sense for the balancer to be on, but the auto-splitter to be off, I propose the following behaviour change of the balancerStart / balancerStop commands:

  • balancerStop - both stops the balancer and sets the auto-splitter setting to false
  • balancerStart - both starts the balancer and sets the auto-splitter setting to true

As a result, start/stop of the balancer will completely forget what was the previous auto-splitter setting.

Customers who wish to run balancer off/auto-splitter on or vice-versa configurations, will have to do it through direct writes to config.settings.



 Comments   
Comment by Githook User [ 11/Jul/19 ]

Author:

{'name': 'Randolph Tan', 'username': 'renctan', 'email': 'randolph@10gen.com'}

Message: SERVER-41195 Turn off auto-splitting when the balancer is turned off

(cherry picked from commit 68fd498481f7427cc780d270b27636f69bb1add8)
Branch: v4.2
https://github.com/mongodb/mongo/commit/baa002b18acb7647f085b70af07acb640e3aff0f

Comment by Githook User [ 24/Jun/19 ]

Author:

{'name': 'Randolph Tan', 'username': 'renctan', 'email': 'randolph@10gen.com'}

Message: SERVER-41195 Turn off auto-splitting when the balancer is turned off
Branch: master
https://github.com/mongodb/mongo/commit/68fd498481f7427cc780d270b27636f69bb1add8

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