Help Center> Distributed Cache Service> FAQ> Redis Usage> Does DCS for Redis Support Read/Write Splitting?

Does DCS for Redis Support Read/Write Splitting?

Currently, read/write splitting is supported only by Redis Cluster DCS instances and master/standby DCS Redis 4.0 or 5.0 instances.

  • For Redis Cluster instances, you can query all master and replica nodes by running the CLUSTER NODES command. The client will select the right node to write or read data.

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

  • For master/standby DCS Redis 4.0 and 5.0 instances, you can query the read/write domain name address (master node) and read/only domain name address (standby node) on the instance basic information page.