Docs Menu

Docs HomeMongoDB Manual

sh.getBalancerState()

sh.getBalancerState()
Returns:boolean

sh.getBalancerState() returns true when the balancer is enabled and false if the balancer is disabled. This does not reflect the current state of balancing operations: use sh.isBalancerRunning() to check the current state of the balancer.

Tip

See also:

←  sh.getBalancerHost()sh.removeTagRange() →
Share Feedback
© 2023 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.