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

FlutterConfig(データベースコマンド)

flushRouterConfig

flushRouterConfig は、シャーディングされたシャーディングされたクラスターたルーティング テーブルを古いとしてマークし、ルーティング テーブルにキャッシュの更新を要求する次の操作を発生させます。 ルーティング テーブルキャッシュの管理はクラスターによって自動的に処理されます。

注意

Running flushRouterConfig is no longer required after executing movePrimary, dropDatabase, or db.collection.getShardDistribution(). These commands now automatically refresh a sharded cluster's routing table as needed when run.

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

  • MongoDB Atlas はクラウドでの MongoDB 配置のための完全管理サービスです
  • MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン

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

The flushRouterConfig is available on both mongos and mongod instances, and has the following syntax:

  • コレクション名前空間パラメーターで渡される場合、指定されたコレクションのキャッシュをフラッシュします。

    db.adminCommand(
    {
    flushRouterConfig: "<db.collection>"
    }
    )
  • データベース名前空間パラメーターで渡されると、指定されたデータベースとそのコレクションすべてのキャッシュをフラッシュします。

    db.adminCommand(
    {
    flushRouterConfig: "<db>"
    }
    )
  • パラメータなしで実行されるか、string 以外のスカラー値(例: 1 ):

    db.adminCommand("flushRouterConfig")
    db.adminCommand(
    {
    flushRouterConfig: 1
    }
    )
このページを評価