Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1555

sh.startBalancer() might be the wrong thing for turning balancing on after turning it off

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      Places in the docs that recommend sh.startBalancer() (e.g., after backing up a sharded cluster) are probably not optimal: startBalancer turns the balancer on and waits for balancing to commence, when users probably merely want to turn the balancer back on.

      There's an alternate method, sh.setBalancerState(), which can just turn the balancer on. Perhaps the docs could recommend that. Alternatively, this could turn into a Core Server issue in the shell to have a tidier method to enable balancing after a stop.

            Assignee:
            allison.moore@mongodb.com Allison Reinheimer Moore
            Reporter:
            richard.kreuter Richard Kreuter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              8 years, 21 weeks ago