檢視 ElastiCache 叢集的詳細資訊 - Amazon ElastiCache

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

檢視 ElastiCache 叢集的詳細資訊

您可以使用 ElastiCache 主控台或 AWS CLI ElastiCache API 檢視一或多個叢集的詳細資訊。

您可以使用 ElastiCache 主控台、 AWS CLI for ElastiCache 或 ElastiCache API 檢視 Memcached 叢集的詳細資訊。

下列程序詳細說明如何使用 ElastiCache 主控台來檢視 Memcached 叢集的詳細資訊。

檢視 Memcached 叢集的詳細資訊
  1. 登入 AWS Management Console ,並在 https://console.aws.amazon.com/elasticache/:// 開啟 Amazon ElastiCache 主控台。

  2. 從右上角的清單中,選擇您感興趣的 AWS 區域。

  3. 在 ElastiCache 引擎儀表板中,選擇 Memcached。這樣做會顯示 Memcached 引擎上執行的所有叢集清單。

  4. 若要查看叢集的詳細資訊,請選擇叢集名稱左側的方塊。

  5. 若要檢視節點資訊,請選擇 Nodes (節點) 標籤,此標籤會顯示節點狀態和端點的相關資訊。

  6. 若要檢視指標,請選擇 Metrics (指標) 標籤,此標籤會顯示叢集中所有節點的相關指標。如需詳細資訊,請參閱 使用 CloudWatch 指標監控用量

  7. 選擇 Network and security (網路和安全性) 標籤,以檢視叢集的網路連線、子網路群組組態以及 VPC 安全群組的詳細資訊。如需詳細資訊,請參閱子網路和子網路群組

  8. 選擇 Maintenance (維護) 標籤,以檢視叢集維護設定的詳細資訊。如需詳細資訊,請參閱管理 ElastiCache 叢集維護

  9. 選擇 Tags (標籤) 標籤,以檢視套用至叢集資源的任何標籤詳細資訊。如需詳細資訊,請參閱為您的 ElastiCache 資源加上標籤

您可以使用 ElastiCache 主控台、 AWS CLI for ElastiCache 或 ElastiCache API,檢視 Valkey 或 Redis OSS (停用叢集模式) 叢集的詳細資訊。

下列程序詳細說明如何使用 ElastiCache 主控台檢視 Valkey 或 Redis OSS (停用叢集模式) 叢集的詳細資訊。

檢視 Valkey 或 Redis OSS (停用叢集模式) 叢集的詳細資訊
  1. 登入 AWS Management Console ,並在 https://console.aws.amazon.com/elasticache/:// 開啟 Amazon ElastiCache 主控台。

  2. 在 ElastiCache 引擎儀表板中,選擇 ValkeyRedis OSS 以顯示在該引擎上執行的所有叢集清單。

  3. 要查看叢集的詳細資訊,請選擇叢集名稱左側的核取方塊。請確定您選取執行 Valkey 或 Redis OSS 引擎的叢集,而非叢集 Valkey 或叢集 Redis OSS。這會顯示叢集的詳細資訊,包括叢集的主端點。

  4. 檢視節點資訊:

    1. 選擇叢集名稱。

    2. 選擇 Shards and nodes (碎片和節點) 標籤。這會顯示各節點的詳細資訊,包括您必須用來讀取叢集的節點之端點。

  5. 若要檢視指標,請選擇 Metrics (指標) 標籤,此標籤會顯示叢集中所有節點的相關指標。如需詳細資訊,請參閱 使用 CloudWatch 指標監控用量

  6. 若要檢視日誌,請選擇 Logs (日誌) 標籤,此標籤會指出叢集是否使用慢速日誌或引擎日誌,並提供相關詳細資訊。如需詳細資訊,請參閱日誌傳送

  7. 選擇 Network and security (網路和安全性) 標籤,以檢視叢集網路連線和子網路群組組態的詳細資訊。如需詳細資訊,請參閱子網路和子網路群組

  8. 選擇 Maintenance (維護) 標籤,以檢視叢集維護設定的詳細資訊。如需詳細資訊,請參閱管理 ElastiCache 叢集維護

  9. 選擇 Service updates (服務更新) 標籤,以檢視任何可用的服務更新詳細資訊,以及其建議套用日期。如需詳細資訊,請參閱ElastiCache 中的服務更新

  10. 選擇 Tags (標籤) 標籤,以檢視套用至叢集資源的任何標籤詳細資訊。如需詳細資訊,請參閱為您的 ElastiCache 資源加上標籤

您可以使用 ElastiCache 主控台、 AWS CLI for ElastiCache 或 ElastiCache API,檢視 Valkey 或 Redis OSS (啟用叢集模式) 叢集的詳細資訊。

下列程序詳細說明如何使用 ElastiCache 主控台檢視 Valkey 或 Redis OSS (啟用叢集模式) 叢集的詳細資訊。

檢視 Valkey 或 Redis OSS (啟用叢集模式) 叢集的詳細資訊
  1. 登入 AWS Management Console ,並在 https://console.aws.amazon.com/elasticache/:// 開啟 Amazon ElastiCache 主控台。

  2. 從右上角的清單中,選擇您感興趣的 AWS 區域。

  3. 在 ElastiCache 引擎儀表板中,選擇 ValkeyRedis OSS,以顯示在該引擎上執行的所有叢集清單。

  4. 若要查看 Valkey 或 Redis OSS (啟用叢集模式) 叢集的詳細資訊,請選擇叢集名稱左側的方塊。請務必選擇執行 Valkey 或叢集 Redis OSS 引擎的叢集。

    叢集下方會展開一個畫面,並顯示叢集的詳細資訊,包括叢集的組態端點。

  5. 若要查看叢集碎片的清單,以及每個碎片的節點數,請選擇 Shards and nodes (碎片與節點) 標籤。

  6. 若要檢視節點的特定資訊:

    1. 選擇碎片的 ID。

      這麼做會顯示每個節點的資訊,包括您要用來讀取叢集資料之每個節點的端點。

  7. 若要檢視指標,請選擇 Metrics (指標) 標籤,此標籤會顯示叢集中所有節點的相關指標。如需詳細資訊,請參閱 使用 CloudWatch 指標監控用量

  8. 若要檢視日誌,請選擇 Logs (日誌) 標籤,此標籤會指出叢集是否使用慢速日誌或引擎日誌,並提供相關詳細資訊。如需詳細資訊,請參閱日誌傳送

  9. 選擇 Network and security (網路和安全性) 標籤,以檢視叢集的網路連線、子網路群組組態、VPC 安全群組的詳細資訊,以及 (如果有) 叢集上啟用的加密方式。如需詳細資訊,請參閱 子網路和子網路群組Amazon ElastiCache 的資料安全性

  10. 選擇 Maintenance (維護) 標籤,以檢視叢集維護設定的詳細資訊。如需詳細資訊,請參閱管理 ElastiCache 叢集維護

  11. 選擇 Service updates (服務更新) 標籤,以檢視任何可用的服務更新詳細資訊,以及其建議套用日期。如需詳細資訊,請參閱ElastiCache 中的服務更新

  12. 選擇 Tags (標籤) 標籤,以檢視套用至叢集資源的任何標籤詳細資訊。如需詳細資訊,請參閱為您的 ElastiCache 資源加上標籤

以下程式碼會列出 my-cluster 的詳細資訊:

aws elasticache describe-cache-clusters --cache-cluster-id my-cluster

如果使用 create-cache-cluster 指令所建立的叢集有 1 個快取節點和 0 碎片,將 my-cluster 取代為您的叢集名稱。

{ "CacheClusters": [ { "CacheClusterStatus": "available", "SecurityGroups": [ { "Status": "active", "SecurityGroupId": "sg-dbe93fa2" } ], "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", "Engine": "redis", "PreferredMaintenanceWindow": "wed:12:00-wed:13:00", "CacheSubnetGroupName": "default", "SnapshotWindow": "08:30-09:30", "TransitEncryptionEnabled": false, "AtRestEncryptionEnabled": false, "CacheClusterId": "my-cluster1", "CacheClusterCreateTime": "2018-02-26T21:06:43.420Z", "PreferredAvailabilityZone": "us-west-2c", "AuthTokenEnabled": false, "PendingModifiedValues": {}, "CacheNodeType": "cache.r4.large", "DataTiering": "disabled", "CacheParameterGroup": { "CacheNodeIdsToReboot": [], "ParameterApplyStatus": "in-sync", "CacheParameterGroupName": "default.redis3.2" }, "SnapshotRetentionLimit": 0, "AutoMinorVersionUpgrade": true, "EngineVersion": "3.2.10", "CacheSecurityGroups": [], "NumCacheNodes": 1 }
{ "CacheClusters": [ { "SecurityGroups": [ { "Status": "active", "SecurityGroupId": "sg-dbe93fa2" } ], "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", "AuthTokenEnabled": false, "CacheSubnetGroupName": "default", "SnapshotWindow": "12:30-13:30", "AutoMinorVersionUpgrade": true, "CacheClusterCreateTime": "2018-02-26T21:13:24.250Z", "CacheClusterStatus": "available", "AtRestEncryptionEnabled": false, "PreferredAvailabilityZone": "us-west-2a", "TransitEncryptionEnabled": false, "ReplicationGroupId": "my-cluster2", "Engine": "redis", "PreferredMaintenanceWindow": "sun:08:30-sun:09:30", "CacheClusterId": "my-cluster2-001", "PendingModifiedValues": {}, "CacheNodeType": "cache.r4.large", "DataTiering": "disabled", "CacheParameterGroup": { "CacheNodeIdsToReboot": [], "ParameterApplyStatus": "in-sync", "CacheParameterGroupName": "default.redis6.x" }, "SnapshotRetentionLimit": 0, "EngineVersion": "6.0", "CacheSecurityGroups": [], "NumCacheNodes": 1 }, { "SecurityGroups": [ { "Status": "active", "SecurityGroupId": "sg-dbe93fa2" } ], "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", "AuthTokenEnabled": false, "CacheSubnetGroupName": "default", "SnapshotWindow": "12:30-13:30", "AutoMinorVersionUpgrade": true, "CacheClusterCreateTime": "2018-02-26T21:13:24.250Z", "CacheClusterStatus": "available", "AtRestEncryptionEnabled": false, "PreferredAvailabilityZone": "us-west-2b", "TransitEncryptionEnabled": false, "ReplicationGroupId": "my-cluster2", "Engine": "redis", "PreferredMaintenanceWindow": "sun:08:30-sun:09:30", "CacheClusterId": "my-cluster2-002", "PendingModifiedValues": {}, "CacheNodeType": "cache.r4.large", "DataTiering": "disabled", "CacheParameterGroup": { "CacheNodeIdsToReboot": [], "ParameterApplyStatus": "in-sync", "CacheParameterGroupName": "default.redis6.x" }, "SnapshotRetentionLimit": 0, "EngineVersion": "6.0", "CacheSecurityGroups": [], "NumCacheNodes": 1 }, { "SecurityGroups": [ { "Status": "active", "SecurityGroupId": "sg-dbe93fa2" } ], "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", "AuthTokenEnabled": false, "CacheSubnetGroupName": "default", "SnapshotWindow": "12:30-13:30", "AutoMinorVersionUpgrade": true, "CacheClusterCreateTime": "2018-02-26T21:13:24.250Z", "CacheClusterStatus": "available", "AtRestEncryptionEnabled": false, "PreferredAvailabilityZone": "us-west-2c", "TransitEncryptionEnabled": false, "ReplicationGroupId": "my-cluster2", "Engine": "redis", "PreferredMaintenanceWindow": "sun:08:30-sun:09:30", "CacheClusterId": "my-cluster2-003", "PendingModifiedValues": {}, "CacheNodeType": "cache.r4.large", "DataTiering": "disabled", "CacheParameterGroup": { "CacheNodeIdsToReboot": [], "ParameterApplyStatus": "in-sync", "CacheParameterGroupName": "default.redis3.2" }, "SnapshotRetentionLimit": 0, "EngineVersion": "3.2.10", "CacheSecurityGroups": [], "NumCacheNodes": 1 }
{ "CacheClusters": [ { "SecurityGroups": [ { "Status": "active", "SecurityGroupId": "sg-dbe93fa2" } ], "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", "AuthTokenEnabled": true, "CacheSubnetGroupName": "default", "SnapshotWindow": "12:30-13:30", "AutoMinorVersionUpgrade": true, "CacheClusterCreateTime": "2018-02-26T21:17:01.439Z", "CacheClusterStatus": "available", "AtRestEncryptionEnabled": true, "PreferredAvailabilityZone": "us-west-2a", "TransitEncryptionEnabled": true, "ReplicationGroupId": "my-cluster3", "Engine": "redis", "PreferredMaintenanceWindow": "thu:11:00-thu:12:00", "CacheClusterId": "my-cluster3-0001-001", "PendingModifiedValues": {}, "CacheNodeType": "cache.r4.large", "DataTiering": "disabled", "CacheParameterGroup": { "CacheNodeIdsToReboot": [], "ParameterApplyStatus": "in-sync", "CacheParameterGroupName": "default.redis6.x.cluster.on" }, "SnapshotRetentionLimit": 0, "EngineVersion": "6.0", "CacheSecurityGroups": [], "NumCacheNodes": 1 }, { "SecurityGroups": [ { "Status": "active", "SecurityGroupId": "sg-dbe93fa2" } ], "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", "AuthTokenEnabled": true, "CacheSubnetGroupName": "default", "SnapshotWindow": "12:30-13:30", "AutoMinorVersionUpgrade": true, "CacheClusterCreateTime": "2018-02-26T21:17:01.439Z", "CacheClusterStatus": "available", "AtRestEncryptionEnabled": true, "PreferredAvailabilityZone": "us-west-2b", "TransitEncryptionEnabled": true, "ReplicationGroupId": "my-cluster3", "Engine": "redis", "PreferredMaintenanceWindow": "thu:11:00-thu:12:00", "CacheClusterId": "my-cluster3-0001-002", "PendingModifiedValues": {}, "CacheNodeType": "cache.r4.large", "DataTiering": "disabled", "CacheParameterGroup": { "CacheNodeIdsToReboot": [], "ParameterApplyStatus": "in-sync", "CacheParameterGroupName": "default.redis3.2.cluster.on" }, "SnapshotRetentionLimit": 0, "EngineVersion": "3.2.6", "CacheSecurityGroups": [], "NumCacheNodes": 1 }, { "SecurityGroups": [ { "Status": "active", "SecurityGroupId": "sg-dbe93fa2" } ], "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", "AuthTokenEnabled": true, "CacheSubnetGroupName": "default", "SnapshotWindow": "12:30-13:30", "AutoMinorVersionUpgrade": true, "CacheClusterCreateTime": "2018-02-26T21:17:01.439Z", "CacheClusterStatus": "available", "AtRestEncryptionEnabled": true, "PreferredAvailabilityZone": "us-west-2c", "TransitEncryptionEnabled": true, "ReplicationGroupId": "my-cluster3", "Engine": "redis", "PreferredMaintenanceWindow": "thu:11:00-thu:12:00", "CacheClusterId": "my-cluster3-0001-003", "PendingModifiedValues": {}, "CacheNodeType": "cache.r4.large", "DataTiering": "disabled", "CacheParameterGroup": { "CacheNodeIdsToReboot": [], "ParameterApplyStatus": "in-sync", "CacheParameterGroupName": "default.redis6.x.cluster.on" }, "SnapshotRetentionLimit": 0, "EngineVersion": "6.0", "CacheSecurityGroups": [], "NumCacheNodes": 1 }, { "SecurityGroups": [ { "Status": "active", "SecurityGroupId": "sg-dbe93fa2" } ], "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", "AuthTokenEnabled": true, "CacheSubnetGroupName": "default", "SnapshotWindow": "12:30-13:30", "AutoMinorVersionUpgrade": true, "CacheClusterCreateTime": "2018-02-26T21:17:01.439Z", "CacheClusterStatus": "available", "AtRestEncryptionEnabled": true, "PreferredAvailabilityZone": "us-west-2b", "TransitEncryptionEnabled": true, "ReplicationGroupId": "my-cluster3", "Engine": "redis", "PreferredMaintenanceWindow": "thu:11:00-thu:12:00", "CacheClusterId": "my-cluster3-0002-001", "PendingModifiedValues": {}, "CacheNodeType": "cache.r4.large", "DataTiering": "disabled", "CacheParameterGroup": { "CacheNodeIdsToReboot": [], "ParameterApplyStatus": "in-sync", "CacheParameterGroupName": "default.redis6.x.cluster.on" }, "SnapshotRetentionLimit": 0, "EngineVersion": "6.0", "CacheSecurityGroups": [], "NumCacheNodes": 1 }, { "SecurityGroups": [ { "Status": "active", "SecurityGroupId": "sg-dbe93fa2" } ], "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", "AuthTokenEnabled": true, "CacheSubnetGroupName": "default", "SnapshotWindow": "12:30-13:30", "AutoMinorVersionUpgrade": true, "CacheClusterCreateTime": "2018-02-26T21:17:01.439Z", "CacheClusterStatus": "available", "AtRestEncryptionEnabled": true, "PreferredAvailabilityZone": "us-west-2c", "TransitEncryptionEnabled": true, "ReplicationGroupId": "my-cluster3", "Engine": "redis", "PreferredMaintenanceWindow": "thu:11:00-thu:12:00", "CacheClusterId": "my-cluster3-0002-002", "PendingModifiedValues": {}, "CacheNodeType": "cache.r4.large", "DataTiering": "disabled", "CacheParameterGroup": { "CacheNodeIdsToReboot": [], "ParameterApplyStatus": "in-sync", "CacheParameterGroupName": "default.redis3.2.cluster.on" }, "SnapshotRetentionLimit": 0, "EngineVersion": "3.2.6", "CacheSecurityGroups": [], "NumCacheNodes": 1 }, { "SecurityGroups": [ { "Status": "active", "SecurityGroupId": "sg-dbe93fa2" } ], "ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:", "AuthTokenEnabled": true, "CacheSubnetGroupName": "default", "SnapshotWindow": "12:30-13:30", "AutoMinorVersionUpgrade": true, "CacheClusterCreateTime": "2018-02-26T21:17:01.439Z", "CacheClusterStatus": "available", "AtRestEncryptionEnabled": true, "PreferredAvailabilityZone": "us-west-2a", "TransitEncryptionEnabled": true, "ReplicationGroupId": "my-cluster3", "Engine": "redis", "PreferredMaintenanceWindow": "thu:11:00-thu:12:00", "CacheClusterId": "my-cluster3-0002-003", "PendingModifiedValues": {}, "CacheNodeType": "cache.r4.large", "DataTiering": "disabled", "CacheParameterGroup": { "CacheNodeIdsToReboot": [], "ParameterApplyStatus": "in-sync", "CacheParameterGroupName": "default.redis6.x.cluster.on" }, "SnapshotRetentionLimit": 0, "EngineVersion": "6.0", "CacheSecurityGroups": [], "NumCacheNodes": 1 } ] }

如果叢集是使用 AWS Management Console (啟用或停用具有 1 個或更多碎片的叢集節點) 建立,請使用下列命令來描述叢集的詳細資訊 (將 my-cluster 取代為複寫群組的名稱 (叢集的名稱):

aws elasticache describe-replication-groups --replication-group-id my-cluster

如需詳細資訊,請參閱 AWS CLI 適用於 ElastiCache 的 主題describe-cache-clusters

您可以使用 ElastiCache API DescribeCacheClusters 動作來檢視叢集的詳細資訊。如果包含 CacheClusterId 參數,則會傳回指定叢集的詳細資訊。如果省略 CacheClusterId 參數,則會傳回最多 MaxRecords 個叢集 (預設值為 100) 的詳細資訊。MaxRecords 的值不可小於 20 或大於 100。

以下程式碼會列出 my-cluster 的詳細資訊。

https://elasticache.us-west-2.amazonaws.com/ ?Action=DescribeCacheClusters &CacheClusterId=my-cluster &Version=2015-02-02 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &X-Amz-Credential=<credential>

以下程式碼清單會列出最多 25 個叢集的詳細資訊。

https://elasticache.us-west-2.amazonaws.com/ ?Action=DescribeCacheClusters &MaxRecords=25 &Version=2015-02-02 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &X-Amz-Credential=<credential>

如需詳細資訊,請參閱 ElastiCache API 參考主題 DescribeCacheClusters