Navigation
This version of the documentation is archived and no longer supported.

sh.startBalancer()

sh.startBalancer(timeout, interval)
Parameters:
  • timeout (integer) – Milliseconds to wait.
  • interval (integer) – Milliseconds to sleep each cycle of waiting.

The sh.startBalancer() enables the balancer in a sharded cluster and waits for balancing to initiate.