总结升级redis 中间件的过程
一、备份
二、修改yal文件 更改镜像
三、直接docker-compose up <容器的名字> 注意需要先升级slave再升级maste节点
四、查看状态
redis-cli -p 6001 -a <密码> info replication | egrep 'role|connected_slaves'
root@37d65a2680e6:/data#
redis-cli -c -p 6001 -a <密码> cluster info | egrep 'cluster_state|cluster_slots_ok|cluster_slots_fail'
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
cluster_state:ok
cluster_slots_ok:16384
cluster_slots_fail:0
评论 (0)