一、背景
非标redis水平扩容后,槽位平衡
变更背景:
推荐中台 新发展机房redis组件扩容
变更环境:
y4
影响范围:
xxx
变更类型:
黑屏操作
涉及SID:
xx
涉及系统等级:
A级
变更负责人:
xx
变更复核人:
xx
变更内容:
变更验收标准:
系统架构图:
备份计划:无
二、准备
三、操作
- 检查集群状态
redis-cli -h 172.16.226.51 -p 7000 -a 2ghlmvl_ST cluster nodes
2. 平衡槽位
# 自动平衡槽位
redis-cli -h 172.16.226.51 -p 7000 -a 2ghlmvl_ST --cluster rebalance --cluster-yes
3. 等待平衡完成 4. 检查集群状态
#
redis-cli -h 172.16.226.51 -p 7000 -a 2ghlmvl_ST cluster info
redis-cli -h 172.16.226.51 -p 7000 -a 2ghlmvl_ST cluster nodes
5. 完成
四、回退方案
-
修改redis参数
-
重启redis
-
恢复redis服务
五、预案手册
lue