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

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

setClusterParameter

setClusterParameter is an administrative command for modifying values of cluster parameters. Cluster parameters are configurable parameters which affect all nodes in a replica set or sharded cluster.

また、 adminデータベースに対してsetClusterParameterコマンドを発行する必要があります。

setClusterParameterコマンドは自己管理型インストールでのみ使用できます。 setClusterParameterコマンドはMongoDB Atlas では使用できません。

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

  • MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン

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

重要

このコマンドは、MongoDB Atlas クラスターではサポートされていません。すべてのコマンドに対する Atlas のサポートについては、「サポートされていないコマンド」を参照してください。

db.adminCommand(
{
setClusterParameter: { <parameter>: <value> }
}
)

例を含む使用可能なクラスター パラメーターについては、「自己管理型配置のクラスター パラメーター 」を参照してください。

  • setClusterParameteradminデータベースでのみ実行できます。 他のデータベースで コマンドを実行すると、MongoDB はエラーを返します。

  • レプリカセット プライマリまたはシャーディングされたクラスターでのみsetClusterParameterを実行できます。

  • スタンドアロン配置ではsetClusterParameterは実行できません

  • setClusterParameter は一度に 1 つのパラメーターのみを受け入れます。

認証が有効になっている場合、 setClusterParametersetClusterParameterアクションへのアクセス権を持つロールを持つユーザーとして認証された場合にのみ機能します。

setClusterParameterを使用して行われたパラメーターの変更は、レプリカセットとシャーディングされたクラスターで永続化されます。 これにより、 setClusterParameterを使用して行われたパラメータの変更が再起動に耐えられるようになります。

apiStrict に設定して1 Stable API Vtrue を使用している場合、 を使用してクラスターsetClusterParameter パラメータを変更することはできません。

このページを評価