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

xcodis能只用 redis的db 0吗? #9

Open
weisd opened this issue Aug 4, 2015 · 7 comments
Open

xcodis能只用 redis的db 0吗? #9

weisd opened this issue Aug 4, 2015 · 7 comments

Comments

@weisd
Copy link

weisd commented Aug 4, 2015

怎么配置呢?

@siddontang
Copy link
Collaborator

xcodis使用的db index作为类似codis里面的slot分区,所以对外仍然没有db index概念,外部使用只能是db 0。

@weisd
Copy link
Author

weisd commented Aug 5, 2015

我的意思是, 内部redis的db index 只用 db 0, 不用其他index, 只用一个

@siddontang
Copy link
Collaborator

会用不同的index,不光是0

@weisd
Copy link
Author

weisd commented Aug 5, 2015

我只想用0,有办法配置吗

@weisd
Copy link
Author

weisd commented Aug 5, 2015

我后端有4个redis, 只能用这4个redis 的db 0

@siddontang
Copy link
Collaborator

现阶段没法子,因为xcodis用db index来模拟的slot。codis之所以全用0,主要是因为他们改了redis,加了slot这个数据结构,但我想用原生的redis。

另外,既然你用了proxy,后端的redis到底怎么存的其实你并不需要太care了,所以我不明白为什么只能用0

@weisd
Copy link
Author

weisd commented Aug 5, 2015

  • - 因为redis接的服务商的,不提供select db命令
    我再看看源码吧,谢谢

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

2 participants