I have a 3 master 9 slave redis cluster. 3 master and 3 slave located in DC1, 6 slave located in DC2. I want to set replica-priority for DC1 slaves. Because masters always stay in DC1.

I am setting replica-priority: 100 at DC1 and replica-priority:80 at DC2.

When ı stop one master in DC1, a slave who located in DC2 getting master. I have changed the replica-priority value on the contrary, it is still same.

replica-priority is not used for redis cluster ? if it used for redis cluster how ?

Comment From: ShooterIT

replica-priority is used for redis sentinel instead of cluster mode, please refer to https://github.com/redis/redis/blob/unstable/redis.conf#L734

maybe this config cluster-replica-no-failover https://github.com/redis/redis/blob/unstable/redis.conf#L1702 can help you, but if you enable this config at DC2, the replicas at DC2 would never be promoted to mater automatically, unless manual failover.

Comment From: ynsdll

it works. Thank you @ShooterIT