Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19556

Add entry for sh.stopBalancer to sh.help() output

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.9
    • Affects Version/s: None
    • Component/s: Shell
    • Environment:
      Ubuntu 14.04
    • Fully Compatible
    • Linux
    • Sharding 17 (07/15/16)

      The stopBalancer command is not shown in the help

      > db.version()
      3.0.4
      > sh.help()
      sh.addShard( host ) server:port OR setname/server:port
      sh.enableSharding(dbname) enables sharding on the database dbname
      sh.shardCollection(fullName,key,unique) shards the collection
      sh.splitFind(fullName,find) splits the chunk that find is in at the median
      sh.splitAt(fullName,middle) splits the chunk that middle is in at middle
      sh.moveChunk(fullName,find,to) move the chunk where 'find' is to 'to' (name of shard)
      sh.setBalancerState( <bool on or not> ) turns the balancer on or off true=on, false=off
      sh.getBalancerState() return true if enabled
      sh.isBalancerRunning() return true if the balancer has work in progress on any mongos
      sh.disableBalancing(coll) disable balancing on one collection
      sh.enableBalancing(coll) re-enable balancing on one collection
      sh.addShardTag(shard,tag) adds the tag to the shard
      sh.removeShardTag(shard,tag) removes the tag from the shard
      sh.addTagRange(fullName,min,max,tag) tags the specified range of the given collection
      sh.removeTagRange(fullName,min,max,tag) removes the tagged range of the given collection
      sh.status() prints a general overview of the cluster
      >

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kimbad Kim Baddeley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: