Skip to content
lorebow

Step 6 of 9, about 1 min

Break it on purpose

Take the primary away and watch Redis recover on its own.

#Delete the primary

Delete the primary (redis-master-0 with Helm) and watch:

bash
kubectl -n redis delete pod redis-0
kubectl -n redis get pods --watch

Until the StatefulSet has redis-0 running again, writes fail: nothing promotes a replica. Because its claim survived, the new redis-0 loads its data from disk and the replicas reconnect to it. This is the gap Sentinel and Cluster close.

#Watch it recover