[DOCS-8963] The sh.setBalancerState(false) command returns a misleading result on shard mongods Created: 28/Sep/16  Updated: 30/Oct/23  Resolved: 19/Jul/17

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Minor - P4
Reporter: Emily Hall Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-19980 The sh.setBalancerState(false) comman... Closed
Participants:
Days since reply: 6 years, 30 weeks ago
Epic Link: 3.4: Sharding Updates

 Description   

The documented approach to stopping the shard balancer is to use the "sh.setBalancerState(false)" command on the mongos. However the command can also be run on any mongod, and no exception is raised.

This is because the the command successfully writes to the local config, but this is nonsensical on a mongod. This can mislead the user into thinking the command has given the desired result.

This server request is to add some exception handling to help prevent this confusion.



 Comments   
Comment by Kay Kim (Inactive) [ 19/Jul/17 ]

actually a 3.2 ticket.

Comment by Githook User [ 19/Jul/17 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-8963: clarify balancer methods/commands are mongos
Branch: v3.2
https://github.com/mongodb/docs/commit/d69bb3c098c7812d56a73ce5b8af846ed61026cf

Comment by Githook User [ 19/Jul/17 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-8963: clarify balancer methods/commands are mongos
Branch: master
https://github.com/mongodb/docs/commit/6c94ea0981ad1e7378e6d32f98defa91ba86a005

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