本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
開啟適用於 Amazon RDS 的 Database Insights 的進階模式
若要開啟 Amazon RDS 的 Database Insights 的進階模式,請使用下列程序。
在建立資料庫執行個體或多可用區域資料庫叢集時,開啟 Database Insights 的進階模式
建立 Amazon RDS 的資料庫時,開啟 Database Insights 的進階模式。
- Console
-
在此主控台中,您可以在建立資料庫執行個體或多可用區域資料庫叢集時開啟 Database Insights 的進階模式。
使用主控台建立資料庫執行個體或多可用區域資料庫叢集時,開啟 Database Insights 的進階模式
登入 AWS Management Console,開啟位於 https://console.aws.amazon.com/rds/
的 Amazon RDS 主控台。 -
選擇 Databases (資料庫)。
-
選擇 Create database (建立資料庫)。
-
在 Database Insights 區段中,選取進階模式。然後選擇下列選項:
-
Retention (保留) – 保留績效詳情資料的時間。Database Insights 進階模式的保留期間必須為 15 個月。
-
AWS KMS key – 指定您的 KMS 金鑰。績效詳情使用您的 KMS 金鑰來加密所有可能的敏感資料。將會對傳輸中與靜態資料進行加密。如需詳細資訊,請參閱 加密 Amazon RDS 資源。
-
-
選擇 Create database (建立資料庫)。
- AWS CLI
-
若要在建立資料庫執行個體或多可用區域資料庫叢集時開啟 Database Insights 的進階模式,請呼叫 create-db-instance 或 create-db-cluster AWS CLI 命令,並提供下列值:
--database-insights-mode advanced以開啟 Database Insights 的進階模式。--engine– 資料庫執行個體的資料庫引擎。-
--db-instance-identifier– 資料庫執行個體的識別符,或--db-cluster-identifier– 多可用區域資料庫叢集的識別碼。 -
--enable-performance-insights以開啟適用於 Database Insights 的 Performance Insights。 --performance-insights-retention-period– 資料庫執行個體或多可用區域資料庫叢集的資料保留期間。若要開啟 Database Insights,保留期間必須至少為 465 天。
下列範例會在建立資料庫執行個體時啟用 Database Insights 的進階模式。
針對 Linux、macOS 或 Unix:
aws rds create-db-instance \ --database-insights-mode advanced \ --engine postgresql \ --db-instance-identifier sample-db-identifier \ --enable-performance-insights \ --performance-insights-retention-period 465針對 Windows:
aws rds create-db-instance ^ --database-insights-mode advanced ^ --engine postgresql ^ --db-instance-identifier sample-db-identifier ^ --enable-performance-insights ^ --performance-insights-retention-period 465 - RDS API
-
若要在建立資料庫執行個體或多可用區域資料庫叢集時開啟 Database Insights 的進階模式,請為 CreateDBInstance 或 CreateDBCluster Amazon RDS API 操作指定下列參數。
DatabaseInsightsMode至advancedEnablePerformanceInsights至TruePerformanceInsightsRetentionPeriod到至少 465 天
在修改資料庫執行個體或多可用區域資料庫叢集時,開啟 Database Insights 的進階模式
修改 Amazon RDS 的資料庫時,開啟 Database Insights。修改資料庫執行個體以啟用 Database Insights 的進階模式不會導致停機時間。
注意
若要啟用 Database Insights,多可用區域資料庫叢集中的每個資料庫執行個體都必須具有相同的 Performance Insights 和增強型監控設定。
- Console
-
在此主控台中,您可以在修改資料庫執行個體或多可用區域資料庫叢集時開啟 Database Insights 的進階模式。
使用主控台修改資料庫執行個體或多可用區域資料庫叢集時,開啟 Database Insights 的進階模式
登入 AWS Management Console,開啟位於 https://console.aws.amazon.com/rds/
的 Amazon RDS 主控台。 -
選擇 Databases (資料庫)。
-
選擇一個資料庫執行個體或多可用區域資料庫叢集,然後選擇 Modify (修改)。
-
在 Database Insights 區段中,選取進階模式。然後選擇下列選項:
-
Retention (保留) – 保留績效詳情資料的時間。Database Insights 進階模式的保留期間必須為 15 個月。
-
AWS KMS key – 指定您的 KMS 金鑰。績效詳情使用您的 KMS 金鑰來加密所有可能的敏感資料。將會對傳輸中與靜態資料進行加密。如需更多詳細資訊,請參閱 加密 Amazon RDS 資源。
-
-
選擇 Continue (繼續)。
-
在 Scheduling of Modifications (修改排程) 中,選擇 Apply immediately (立即套用)。如果您選擇在下一個排定的維護時段套用,則資料庫會忽略此設定,並立即開啟 Database Insights 的進階模式。
-
選擇修改執行個體。
- AWS CLI
-
若要在修改資料庫執行個體或多可用區域資料庫叢集時開啟 Database Insights 的進階模式,請呼叫 modify-db-instance 或 modify-db-cluster AWS CLI 命令,並提供下列值:
--database-insights-mode advanced以開啟 Database Insights 的進階模式。-
--db-instance-identifier– 資料庫執行個體的識別符,或--db-cluster-identifier– 多可用區域資料庫叢集的識別碼。 -
--enable-performance-insights以開啟適用於 Database Insights 的 Performance Insights。 --performance-insights-retention-period:資料庫執行個體的資料保留期間。若要開啟 Database Insights 的進階模式,保留期必須至少為 465 天。
下列範例會在修改資料庫執行個體時啟用 Database Insights 的進階模式。
針對 Linux、macOS 或 Unix:
aws rds modify-db-instance \ --database-insights-mode advanced \ --db-instance-identifier sample-db-identifier \ --enable-performance-insights \ --performance-insights-retention-period 465針對 Windows:
aws rds modify-db-instance ^ --database-insights-mode advanced ^ --db-instance-identifier sample-db-identifier ^ --enable-performance-insights ^ --performance-insights-retention-period 465 - RDS API
-
若要在修改資料庫執行個體或多可用區域資料庫叢集時開啟 Database Insights 的進階模式,請為 ModifyDBInstance 或 ModifyDBCluster Amazon RDS API 操作指定下列參數。
DatabaseInsightsMode至advancedEnablePerformanceInsights至TruePerformanceInsightsRetentionPeriod到至少 465 天