説明
sh.enableBalancing(namespace)シャーディングされたコレクションの指定された名前空間のバランサーを有効にします。
重要
You can only run
sh.enableBalancing()on amongosinstance.sh.enableBalancing()errors if run onmongodinstance.The
sh.enableBalancing()method has the following parameter:Parameterタイプ説明namespacestring
コレクションの名前空間。
重要
sh.enableBalancing()does not start balancing. Rather, it allows balancing of this collection the next time the balancer runs.バランシング プロセスの詳細については、「 シャーディングされたクラスター バランサー と シャーディングされたクラスター バランサーの管理 」を参照してください。
互換性
このメソッドは、次の環境でホストされている配置で使用できます。
MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン
MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン