"Redis Cluster 槽迁移:使用 redis-trib.rb 工具进行槽迁移"\nRedis-cli 工具的 reshard 命令不支持 --from 和 --slots 参数。您可以使用 Redis Cluster 的官方管理工具 redis-trib.rb 进行槽迁移。\n\n示例命令:\n\nbash\n$ redis-trib.rb reshard <host>:<port> --from <node-id> --to <node-id> --slots <num_slots> --yes\n\n\n其中,: 是集群中的任意一个节点的主机名和端口号, 是节点的 ID,<num_slots> 是要迁移的槽数量。\n\n请确保您已经安装了 Redis Cluster,并且在正确的路径下找到了 redis-trib.rb 工具。

Redis Cluster 槽迁移:使用 redis-trib.rb 工具进行槽迁移

原文地址: https://www.cveoy.top/t/topic/pklT 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录