CodisLabs / codis

Proxy based Redis cluster solution supporting pipeline and scaling dynamically
MIT License
13.14k stars 2.69k forks source link

如何修改默认的1024slots #1747

Open Gjj455 opened 2 years ago

Gjj455 commented 2 years ago

想要修改默认的1024 个slots 目前是修改pkg/models/slots.go 文件下const MaxSlotNum 之后重新编译 发现dashboard页面基本没变,offline 的地方有点变化 实际set key 的时候 还是会出现ERR handle request, slot is not ready, may be offline,感觉算法还是1024 取余没有变啊 请问其他还有哪里需要做修改吗?

ahern88 commented 1 year ago

我修改了MaxSlotNum,同时也修改了页面上的几个地方后重新编译OK,没发现啥问题

hiqsociety commented 1 year ago

@ahern88 can u provide your modification to github.com/cloudxaas/codis with 65535 values instead of 1024?