ContainerSolutions / redis-cluster-operator

A Kubernetes Operator for running Production Redis Clusters
Apache License 2.0
6 stars 3 forks source link

Trying to failover master without moving slots #18

Closed chris-cmsoft closed 2 years ago

chris-cmsoft commented 2 years ago

When ensuring the master replica ratio, and there are too many masters, we try to fail over the first master we find.

If that master has slots assigned to it, the failover fails and we end up in a reconciliation loop forever.

We should try to order the masters by slot, so that we can select a master without slot for the failover.