数据迁移命令

codis__数据迁移和伸缩容

注意点:是迁移到某个 redis-group 而不是某个redis-servers  实例

 

伸缩容用法

redis 内存等不够用时

增容 : 增加redis-group, 然后迁移使用上述命令 迁移数据给他  

 

当需要做资源整合时

缩容: 先用迁移命令把数据迁走,然后 ../bin/codis-config server remove-group 1 移调该组 

 

当某个redis 出现故障点时

../bin/codis-config server promote 2 192.168.10.229:6385 马上把 2 组中的6385 提升为master

codis__数据迁移和伸缩容

 

注意事项:这个动作是不会迁移数据的,所以6385此时是个空redis,除非本来就把 6385 和 6384 绑定为主从

 

相关文章:

  • 2019-10-25
  • 2021-12-25
  • 2019-06-26
  • 2019-07-05
  • 2021-11-30
  • 2021-11-08
  • 2021-11-30
猜你喜欢
  • 2021-11-08
  • 2021-05-21
  • 2021-11-19
  • 2021-11-08
  • 2021-11-20
  • 2021-09-17
  • 2021-10-07
  • 2021-11-07
相关资源
相似解决方案