[SERVER-26388] (add option to?) toggle autoSplit in start/stopBalancer, or add runtime enableAutoSplit helper? Created: 29/Sep/16  Updated: 29/Sep/16  Resolved: 29/Sep/16

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

Type: Improvement Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Esha Maharishi (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Sharding 2016-10-10
Participants:

 Description   

There are two issues here:

1) A ShardingTest can be started with autosplit enabled or disabled through the "enableAutoSplit" option. Autosplit can be disabled later through st.disableAutoSplit(), but there is no helper to re-enable it.

2) If not specified, enableAutoSplit defaults to the enableBalancer setting (which defaults to false). However, autosplit is not toggled on start/stopBalancer. Should it be?

Note: On 3.2, re-enabling autosplit at runtime would require restarting mongoses.



 Comments   
Comment by Esha Maharishi (Inactive) [ 29/Sep/16 ]

Correction: for issue 1 in the description, there actually is an enableAutoSplit helper in utils_sh.js that gets transferred to ShardingTest:

https://github.com/mongodb/mongo/blob/3.3.12/src/mongo/shell/shardingtest.js#L173

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