Docs Menu

sh.waitForBalancer()

項目一覧

sh.waitForBalancer(wait, timeout, interval)

Waits for a change in the state of the balancer. sh.waitForBalancer() is an internal method, which takes the following arguments:

Parameter
タイプ
説明

wait

ブール値

Optional. Set to true to ensure the balancer is now active. The default is false, which waits until balancing stops and becomes inactive.

timeout

integer

Milliseconds to wait.

interval

integer

Milliseconds to sleep.

このメソッドは、次の環境でホストされている配置で使用できます。

重要

このコマンドは、 MongoDB Atlasクラスターではサポートされていません。 すべてのコマンドの Atlas サポートの詳細については、「 サポートされていないコマンド 」を参照してください。

  • MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン

  • MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン

項目一覧