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