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 isfalse
, which waits until balancing stops and becomes inactive.timeout
integer
待機するミリ秒。
interval
integer
休止時間(ミリ秒)。
互換性
このメソッドは、次の環境でホストされている配置で使用できます。
重要
このコマンドは、 MongoDB Atlasクラスターではサポートされていません。 すべてのコマンドの Atlas サポートの詳細については、「 サポートされていないコマンド 」を参照してください。
MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン
MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン