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

支持redis集群? #2

Closed
jeremyxu2010 opened this issue Dec 30, 2018 · 3 comments
Closed

支持redis集群? #2

jeremyxu2010 opened this issue Dec 30, 2018 · 3 comments

Comments

@jeremyxu2010
Copy link

我看了client/client.go:20处的代码,好像目前只是查询单机redis的,可否支持下redis集群?
我看底层已经有相应的接口了github.com/winjeg/redis/universal.go:172

@winjeg
Copy link
Owner

winjeg commented Jan 1, 2019

这个集群的,其实在我实际使用过程中呢, 它scan的结果其实是跟单机的有些区别的, 有些可能scan的不是很准确,应该是redis 驱动的一些问题, 这个驱动还有一些其他小问题,得再看看。
另外, 集群的话, 对于每个节点的话可以都运行这个命令,理论上讲这样scan的结果是不会有错的。

@jeremyxu2010
Copy link
Author

@winjeg 嗯,目前我就是查询每个节点的,但还是希望能直接统计整个集群,这样更全局一点

@winjeg
Copy link
Owner

winjeg commented Jan 4, 2019

我尝试在 v0.0.9 中加入了这个特性, 你可以尝试一下, 不影响原来的使用,多了一条命令

rma4go -c "localhost:123,localhost:456,localhost:21312"

这个issue 我先关了, 有什么问题,你可以再打开

@winjeg winjeg closed this as completed Jan 4, 2019
This issue was closed.
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