

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Amazon DocumentDB 叢集參數參考
<a name="cluster_parameter_groups-list_of_parameters"></a>

當您變更動態參數並儲存叢集參數群組時，無論 *Apply Immediately (立即套用)* 設定為何，變更都會立即套用。當您變更靜態參數並儲存叢集參數群組時，參數變更會在您手動重新啟動叢集執行個體之後生效。您可以使用 Amazon DocumentDB 主控台或明確呼叫 來重新啟動執行個體`reboot-db-instance`。

下表顯示套用至 Amazon DocumentDB 叢集中所有執行個體的參數。


**Amazon DocumentDB 叢集層級參數**  

| 參數 | 預設值 | 有效值 | 可修改 | 套用類型 | 資料類型 | 說明 | 
| --- | --- | --- | --- | --- | --- | --- | 
| audit\_logs | disabled | enabled、disable、ddl、dml\_read、dml\_write、全部、無 | 是 | 動態 | String | 定義是否啟用 Amazon CloudWatch 稽核日誌。+  **enabled** — 已啟用 CloudWatch 稽核日誌。 <br />+  **disabled** — CloudWatch 稽核日誌已停用。 <br />+  **ddl** — 啟用 DDL 事件的稽核。 <br />+  **dml\_read** — 啟用 DML 讀取事件的稽核。 <br />+  **dml\_write** — 啟用 DML 寫入事件的稽核。 <br />+  **all** — 啟用所有資料庫事件的稽核。 <br />+  **none** — 稽核已停用。  | 
| change\_stream\_log\_retention\_duration | 10800 | 3600-604800 | 是 | 動態 | Integer | 定義變更串流日誌保留並可使用的持續時間 (以秒為單位)。 | 
| default\_collection\_compression | disabled | 啟用、停用 (Amazon DocumentDB 5.0)/zstd、lz4、無 (Amazon DocumentDB8.0) | 是 | 動態 | String | 定義叢集中新集合的預設壓縮設定 + **enabled** — Lz4 壓縮預設為在 Amazon DocumentDB 5.0 中啟用。zstd 壓縮預設為在 Amazon DocumentDB 8.0 中啟用。<br />+ **disabled, none** — 預設會停用壓縮 （在 Amazon DocumentDB 5.0 中停用，在 Amazon DocumentDB 8.0 中不停用）。 | 
| profiler | 停用 | 啟用，停用 | 是 | 動態 | String | 啟用緩慢操作的分析功能。+  **enabled** — 需要超過客戶定義閾值 （例如 100 毫秒） 的操作會記錄toAmazon CloudWatch Logs。 <br />+  **disabled** — 慢速操作不會記錄到 CloudWatch Logs。  | 
| profiler\_sampling\_rate | 1.0 | 0.0-1.0 | 是 | 動態 | Float | 定義已記錄操作的取樣率。 | 
| profiler\_threshold\_ms | 100 | 50-2147483646 | 是 | 動態 | Integer | 定義 profiler 的閾值。+  所有大於 的操作`profiler_threshold_ms`都會記錄到 CloudWatch Logs。  | 
| planner\_version | 3.0 | 1.0、2.0、3.0 | 是 | 動態 | Float | 定義要用於查詢的查詢規劃器版本。+  **1.0** — Amazon DocumentDB 5.0 中支援。 <br />+  **2.0** — 尋找和更新運算子的改進。Amazon DocumentDB 5.0 中支援。 <br />+  **3.0** — 尋找、更新和彙總運算子的改進。Amazon DocumentDB 8.0 中的預設查詢規劃器。  | 
| tls | 已啟用 | enabled、disable、fips-140-3、tls1.2\+、tls1.3\+ | 是 | 靜態 | String | 定義 Transport Layer Security (TLS) 連線是否必要。+  **enabled** — 需要 TLS 連線才能連線。對於 Amazon DocumentDB 5.0 和更早版本，這會啟用 TLS 1.0 到 1.3，但使用 TLS 1.2 或更高版本。從次要版本 5.0.1、Amazon DocumentDB 8.0 及更新版本開始，Amazon DocumentDB 5.0 僅支援 TLS 1.2 及更新版本。 <br />+  **disabled** — TLS 連線無法用於連線。 <br />+  **fips-140-3** — 需要具有聯邦資訊處理標準 (FIPS) 屬性的 TLS 連線才能連線。叢集僅接受每個 FIPS 出版物 140-3 的安全連線。僅支援從這些區域中的 Amazon DocumentDB 5.0 （引擎版本 3.0.3727) 叢集開始：ca-central-1、us-west-2、us-east-1、us-east-2、us-gov-east-1、us-gov-west-1。 <br />+  **tls1.2\+** — 必須使用 TLS 1.2 版及更高版本進行 TLS 連線才能連線。僅支援從 Amazon DocumentDB 4.0 （引擎版本 2.0.10980) 和 Amazon DocumentDB 5.0 （引擎版本 3.0.11051) 開始。 <br />+  **tls1.3\+** — 必須使用 TLS 1.3 版及更高版本進行 TLS 連線才能連線。僅支援從 Amazon DocumentDB 4.0 （引擎版本 2.0.10980) 和 Amazon DocumentDB 5.0 （引擎版本 3.0.11051) 開始。  | 
| ttl\_monitor | 已啟用 | 啟用，停用 | 是 | 動態 | String | 定義是否為叢集啟用存活期 (TTL) 監控功能。+  **enabled** — 已啟用 TTL 監控。 <br />+  **disabled** — TTL 監控已停用。  | 