

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# Amazon DocumentDB 集群参数参考
<a name="cluster_parameter_groups-list_of_parameters"></a>

当您更改动态参数并保存集群参数组时，更改将立即应用，而不管*立即应用*的设置如何。当您更改静态参数并保存集群参数组时，参数更改将在您手动重启实例后生效。您可以使用 Amazon DocumentDB 控制台或通过明确调用 `reboot-db-instance` 来重启实例。

下表显示了适用于 Amazon DocumentDB 集群中所有实例的参数。


**Amazon DocumentDB 集群级参数**  

| 参数 | 默认 值 | 有效值 | 可修改 | 应用类型 | 数据类型 | 说明 | 
| --- | --- | --- | --- | --- | --- | --- | 
| audit\_logs | disabled | 已启用、已禁用、ddl、dml\_read、dml\_write、全部、无 | 是 | 动态 | 字符串 | 定义是否启用 Amazon CloudWatch 审计日志。[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/documentdb/latest/developerguide/cluster_parameter_groups-list_of_parameters.html) | 
| change\_stream\_log\_retention\_duration | 10800 | 3600-604800 | 是 | 动态 | 整数 | 定义变更流日志保留和可以使用的以秒计的时间长度。 | 
| default\_collection\_compression | disabled | 已启用、已禁用（亚马逊 DocumentDB 5.0）/zstd、lz4、无（亚马逊） DocumentDB8.0 | 是 | 动态 | 字符串 | 定义集群中新集合的默认压缩设置 [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/documentdb/latest/developerguide/cluster_parameter_groups-list_of_parameters.html) | 
| profiler | disabled | 启用，禁用 | 是 | 动态 | 字符串 | 为慢速操作启用分析。[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/documentdb/latest/developerguide/cluster_parameter_groups-list_of_parameters.html) | 
| profiler\_sampling\_rate | 1.0 | 0.0-1.0 | 是 | 动态 | 浮点型 | 定义已记录操作的采样率。 | 
| profiler\_threshold\_ms | 100 | 50-2147483646 | 是 | 动态 | 整数 | 为 profiler 定义阈值。[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/documentdb/latest/developerguide/cluster_parameter_groups-list_of_parameters.html) | 
| planner\_version | 3.0 | 1.0、2.0、3.0 | 是 | 动态 | 浮点型 | 定义用于查询的查询计划器版本。[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/documentdb/latest/developerguide/cluster_parameter_groups-list_of_parameters.html) | 
| tls | 已启用 | enabled、disabled、fips-140-3、tls1.2\+、tls1.3\+ | 是 | 静态 | 字符串 | 定义是否需要传输层安全性 (TLS) 连接。[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/documentdb/latest/developerguide/cluster_parameter_groups-list_of_parameters.html) | 
| ttl\_monitor | 已启用 | 启用，禁用 | 是 | 动态 | 字符串 | 定义是否为集群启用有效时间 (TTL) 监控。[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/documentdb/latest/developerguide/cluster_parameter_groups-list_of_parameters.html) | 