一款强大的云原生redis-operator,经过大规模生产级运行考验,支持分布式集群、支持主备切换等缓存集群解决方案…The powerful cloud-native redis-operator, which has passed the test of large-scale production-level operation, supports distributed clusters and active/standby switching ...
1:M 25 Jul 2023 02:28:25.269 * DB loaded from disk: 0.000 seconds
1:M 25 Jul 2023 02:28:25.269 # I have keys for unassigned slot 3300. Taking responsibility for it.
1:M 25 Jul 2023 02:28:25.272 * Ready to accept connections
测试步骤: 1、创建redis集群; 2、向redis集群写入一些数据; 3、重启部分pod,新重启的pod里,会被判定为有槽位信息(podInCluster函数),那么这些pod就不会被加入集群;
重启pod的redis相关日志如下:
虽然nodes.conf是未被持久化的,但启动后,还是会被redis给写入槽位数据: