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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • Server
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 10 weeks, 6 days ago