定義
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ブール値
任意。 バランサーがアクティブになっていることを確認するには、
trueを に設定します。 デフォルトはfalseで、バランシングが停止して非アクティブになるまで待機します。timeoutinteger
待機するミリ秒。
intervalinteger
休止時間(ミリ秒)。
互換性
このメソッドは、次の環境でホストされている配置で使用できます。
重要
This command is not supported in MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands.
MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン
MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン