From the replication endpoints documentation, Valkey or Redis OSS (cluster mode enabled) clusters with replicas, because they have multiple shards (API/CLI: node groups), which mean they also have multiple primary nodes, have a different endpoint structure than Valkey or Redis OSS (cluster mode disabled) clusters. Valkey or Redis OSS (cluster mode enabled) has a configuration endpoint which "knows" all the primary and node endpoints in the cluster.
@vht981230 answer covers it all but in the docs it is clearly mentioned
Reader endpoints works with ElastiCache (Redis OSS) clusters with cluster-mode disabled.
Your application connects to the configuration endpoint.
Whenever your application writes to or reads from the cluster’s
configuration endpoint, Valkey and Redis OSS, behind the scenes,
determine which shard the key belongs to and which endpoint in that
shard to use.
2
Answers
From the replication endpoints documentation, Valkey or Redis OSS (cluster mode enabled) clusters with replicas, because they have multiple shards (API/CLI: node groups), which mean they also have multiple primary nodes, have a different endpoint structure than Valkey or Redis OSS (cluster mode disabled) clusters. Valkey or Redis OSS (cluster mode enabled) has a configuration endpoint which "knows" all the primary and node endpoints in the cluster.
From Finding connection endpoints in ElastiCache, to find the endpoints for cluster mode enabled Valkey clusters CLI, you can find it by using the command
Alternatively, you can also find it on the console
To find a Valkey or Redis OSS (cluster mode enabled) cluster’s endpoint by following the provided step
Valkey clusters
orRedis OSS clusters
.Configuration endpoint
is displayed underCluster details
. To copy it, choose the copy icon to the left of the endpoint.@vht981230 answer covers it all but in the docs it is clearly mentioned
configuration endpoint, Valkey and Redis OSS, behind the scenes,
determine which shard the key belongs to and which endpoint in that
shard to use.