判斷擱置的維護 - Amazon DocumentDB

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

判斷擱置的維護

您可以判斷是否有擱置中的叢集維護,以判斷是否擁有最新的 Amazon DocumentDB 引擎版本。

Using the AWS Management Console

您可以使用 AWS Management Console 來判斷叢集是否有擱置中的維護。

  1. 登入 AWS Management Console,然後在 /docdb 開啟亞馬遜文件資料庫主控台。https://console.aws.amazon.com

  2. 在導覽窗格中,選擇叢集

    提示

    如果畫面左側沒有出現導覽窗格,請選擇頁面左上角的功能表圖示 (Hamburger menu icon with three horizontal lines.)。

  3. 找出 Maintenance (維護) 欄,判斷叢集是否有待定的維護。

    顯示 Amazon DocumentDB 叢集維護欄位的主控台螢幕快照。

    None (無) 表示叢集執行的是最新的引擎版本。Available (可用) 表示叢集有待定的維護,這可能表示引擎需要升級。

  4. 如果您的叢集有待定的維護,請繼續對叢集的引擎版本執行修補程式更新中的步驟。

Using the AWS CLI

您可以使用具有下列參數的describe-pending-maintenance-actions作業 AWS CLI 來判斷叢集是否具有最新的引擎版本。

參數
  • --resource-identifier選擇性。資源 (叢集) 的。ARN如果省略這個參數,則會列出所有叢集的待定維護動作。

  • --region選擇性。您要在其中執行此作業的「AWS區域」,例如,us-east-1

若為 Linux、macOS 或 Unix:

aws docdb describe-pending-maintenance-actions \ --resource-identifier arn:aws:rds:us-east-1:123456789012:cluster:sample-cluster \ --region us-east-1

針對 Windows:

aws docdb describe-pending-maintenance-actions ^ --resource-identifier arn:aws:rds:us-east-1:123456789012:cluster:sample-cluster ^ --region us-east-1

此操作的輸出將會如下所示。

{ "PendingMaintenanceActions": [ { "ResourceIdentifier": "arn:aws:rds:us-east-1:123456789012:cluster:sample-cluster", "PendingMaintenanceActionDetails": [ { "Description": "New feature", "Action": "db-upgrade", "ForcedApplyDate": "2019-02-25T21:46:00Z", "AutoAppliedAfterDate": "2019-02-25T07:41:00Z", "CurrentApplyDate": "2019-02-25T07:41:00Z" } ] } ] }

如果您的叢集有待定的維護,請繼續對叢集的引擎版本執行修補程式更新中的步驟。