I have a Redis cluster with a master node and a read-only replica node. Now, let's suppose the master is unavailable for a period of time. My Redis client automatically fails over to the replica and tries to do a PUBLISH. A few specific questions:
- If the master is down, will the read-only replica automatically reconfigure itself as a master? 2.
- If it does not, does a read-only replica support the PUBLISH command or will it reject it?
- Does the answer to (2) depend on whether the Redis cluster is backed by a persistent store? If so, which configuration(s) allow a read-only replica to accept a PUBLISH command (RDB, AOF...)?
Comment From: huangzhw
Replica can auto failover master. read-only replica supports pubsub. You can just have a try.