Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何修改默认的1024slots #1747

Open
Gjj455 opened this issue Aug 16, 2022 · 2 comments
Open

如何修改默认的1024slots #1747

Gjj455 opened this issue Aug 16, 2022 · 2 comments

Comments

@Gjj455
Copy link

Gjj455 commented Aug 16, 2022

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

@ahern88
Copy link

ahern88 commented Oct 21, 2022

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

@hiqsociety
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants