Help Center/ Distributed Cache Service/ FAQs/ Feature/ Can I Obtain the Addresses of the Nodes in a Cluster DCS Redis Instance?
Updated on 2023-09-28 GMT+08:00

Can I Obtain the Addresses of the Nodes in a Cluster DCS Redis Instance?

For a cluster DCS Redis 4.0 or later instance (Redis Cluster type), run the CLUSTER NODES command to obtain node addresses:

redis-cli -h {redis_address} -p {redis_port} -a {redis_password} cluster nodes

In the output similar to the following, obtain the IP addresses and port numbers of all the master nodes.