codis icon indicating copy to clipboard operation
codis copied to clipboard

如何修改默认的1024slots

Open Gjj455 opened this issue 3 years ago • 2 comments

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

Gjj455 avatar Aug 16 '22 02:08 Gjj455

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

ahern88 avatar Oct 21 '22 00:10 ahern88

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

hiqsociety avatar May 01 '23 17:05 hiqsociety