查看集群的详细信息 - ElastiCache 适用于 Redis 的 Amazon
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

查看集群的详细信息

您可以使用 ElastiCache 控制台、Amazon CLI 或 ElastiCache API 查看有关一个或多个集群的详细信息。

您可以使用 ElastiCache 控制台、Amazon CLI for ElastiCache,或 ElastiCache API 查看 Redis(已禁用集群模式)集群的详细信息。

以下过程详细说明了如何使用 ElastiCache 控制台查看 Redis(已禁用集群模式)集群的详细信息。

查看 Redis(已禁用集群模式)集群的详细信息
  1. 登录 Amazon Web Services Management Console 并打开 Amazon ElastiCache 控制台(https://console.aws.amazon.com/elasticache/)。

  2. 在 ElastiCache 控制台控制面板中,选择 Redis 可显示运行任意 Redis 版本的所有集群的列表。

  3. 要查看集群的详细信息,请选择集群名称左侧的复选框。确保所选的集群运行 Redis 引擎,而不是 Clustered Redis 引擎。执行此操作将显示该集群的详细信息,包括集群的主端点。

  4. 查看节点信息:

    1. 选择集群的名称。

    2. 选择 Shards and nodes(分片和节点)选项卡。执行此操作将显示每个节点的详细信息,包括节点中用于从集群进行读取的端点。

  5. 要查看指标,请选择 Metrics(指标)选项卡,该选项卡显示集群中所有节点的相关指标。有关更多信息,请参阅使用 CloudWatch 指标监控使用情况

  6. 要查看日志,请选择 Logs(日志)选项卡,该选项卡指示集群使用的是慢日志还是引擎日志,并提供相关详细信息。有关更多信息,请参阅日志传输

  7. 选择 Network and security(网络和安全)选项卡,可查看有关集群的网络连接和子网组配置的详细信息。有关更多信息,请参阅子网和子网组

  8. 选择 Maintenance(维护)选项卡,可查看有关集群维护设置的详细信息。有关更多信息,请参阅管理维护

  9. 选择 Service updates(服务更新)选项卡,可查看所有可用服务更新的详细信息及其建议的应用截止日期。有关更多信息,请参阅中的服务更新 ElastiCache

  10. 选择 Tags(标签)选项卡,可查看应用于集群资源的任何标签的详细信息。有关更多信息,请参阅标记 ElastiCache 资源

您可以使用 ElastiCache 控制台、Amazon CLI for ElastiCache,或 ElastiCache API 查看 Redis(已启用集群模式)集群的详细信息。

以下过程详细说明了如何使用 ElastiCache 控制台查看 Redis(已启用集群模式)集群的详细信息。

查看 Redis(已启用集群模式)集群的详细信息
  1. 登录 Amazon Web Services Management Console 并打开 Amazon ElastiCache 控制台(https://console.aws.amazon.com/elasticache/)。

  2. 从右上角的列表中,选择您感兴趣的 Amazon 区域。

  3. 在 ElastiCache 控制台控制面板中,选择 Redis 可显示运行任意 Redis 版本的所有集群的列表。

  4. 要查看 Redis(已启用集群模式)集群的详细信息,请选择集群名称左侧的复选框。确保选择的是运行 Clustered Redis 引擎而不是 Redis 引擎的集群。

    该集群下方的屏幕会扩展,显示有关该集群的详细信息,包括该集群的配置端点。

  5. 要查看集群分片的列表及每个分片的节点数量,请选择 Shards and nodes(分片和节点)选项卡。

  6. 查看有关节点的特定信息:

    1. 选择分片的 ID。

      这将显示有关每个节点的信息,包括用于从集群中读取数据的每个节点的端点。

  7. 要查看指标,请选择 Metrics(指标)选项卡,该选项卡显示集群中所有节点的相关指标。有关更多信息,请参阅使用 CloudWatch 指标监控使用情况

  8. 要查看日志,请选择 Logs(日志)选项卡,该选项卡指示集群使用的是慢日志还是引擎日志,并提供相关详细信息。有关更多信息,请参阅日志传输

  9. 选择 Network and security(网络和安全)选项卡,可查看有关集群的网络连接和子网组配置、VPC 安全组以及集群上启用的加密方法(如有)的详细信息。有关更多信息,请参阅 子网和子网组Amazon ElastiCache 中的数据安全性

  10. 选择 Maintenance(维护)选项卡,可查看有关集群维护设置的详细信息。有关更多信息,请参阅管理维护

  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 } ] }

如果使用 Amazon Web Services Management Console创建集群(启用或禁用集群节点,具有一个或多个分片),请使用以下命令描述集群的详细信息 [将 my-cluster 替换为复制组的名称(集群的名称)]:

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

有关更多信息,请参阅 Amazon CLI for 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