AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

sh.enableBalancing()(mongoshメソッド)

sh.enableBalancing(namespace)

シャーディングされたコレクションの指定された名前空間のバランサーを有効にします。

重要

You can only run sh.enableBalancing() on a mongos instance. sh.enableBalancing() errors if run on mongod instance.

The sh.enableBalancing() method has the following parameter:

Parameter
タイプ
説明

namespace

string

コレクションの名前空間

重要

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 のバージョン

このページを評価

項目一覧