-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pika加入到codis3.0报错 #83
Comments
这个应该是由于codis 3.0及之后在添加server时,codis会向后端server发送slotsinfo命令进行检查,而pika在支持codis时有一个开关,只有在打开开关的情况下,slots相关的命令才可以支持成功。所以你可以参考http://www.jianshu.com/p/07bc0483e56c 这个将开关打开,应该就可以了。 |
果然打开了就可以了,谢谢! |
这应该不是挂掉的原因,看看log还有没有其他有问题的点,看看core dump文件,一般我遇到的挂掉,多是oom导致的看下/var/log/messages,综合这几个应该就找到挂掉原因了。 |
我这边看了core文件,报了如下错误,我在fe界面看server的空间都是1GB,这是默认的吗? |
fe显示的是内存的使用,是基于redis info命令解析获得的,而pika info命令返回和redis是不相同的,所以fe上面的显示可以忽略不计,看看实际使用的情况 |
关于上面的core文件,能帮忙分析一下是哪里的问题吗?我这边机器内存大概有200G,SSD有2个多T,空间应该够用,我试了往单个pika里压数据没问题,就是挂到codis下就会有挂掉的。。。 |
codis proxy就是将请求转了下发给后端server了,和直接连接pika没太大实质上的区别,我能想到codis连接后端pika server的问题就是,codis默认和后端server是单连接的,导致性能比较低(可以用多连接解决),但这个不应该导致后端server pika挂掉。所以我有些怀疑应该是直接压pika,也可能会挂掉。对这个core dump文件我定位不到问题的原因。也许 @baotiao @KernelMaker 能帮忙定位下? |
我这边又试了下,如果codis下只挂一个pika,压数据时不会挂掉,多于1个就会有挂掉的,我试了挂两个pika,压一会儿就有一个挂掉了 |
你加入294254078 这个pika交流群,将你的情况,尤其是core dump的内容和pika的几位作者交流下,看你的core dump文件是底层库的地方,他们熟悉,如果能定位到是codis的问题,我可以进一步定位问题的原因,我对pika了解的很浅 ~ @wyf0705 |
嗯,已经把相关信息发给作者帮忙解决了,多谢! |
* add RedisZsets::ZScan() interface * create root directory before open db * support dump database
想将pika加入到codis3.0,到--group-add这一步报错,我换个redis,就不报错,帮忙分析一下,谢谢!报错信息如下:
2017/04/28 15:24:54 dashboard.go:442: [PANIC] call rpc group-add-server to dashboard 192.168.161.19:10597 failed
[error]: [Remote Error] ERR not set slotmigrate
3 /home/jiang_shiyi/rpmbuild/BUILD/codis-3.0.1/src/github.com/CodisLabs/codis/pkg/topom/redis.go:58
github.com/CodisLabs/codis/pkg/topom.(*RedisClient).command
2 /home/jiang_shiyi/rpmbuild/BUILD/codis-3.0.1/src/github.com/CodisLabs/codis/pkg/topom/redis.go:145
github.com/CodisLabs/codis/pkg/topom.(*RedisClient).SlotsInfo
1 /home/jiang_shiyi/rpmbuild/BUILD/codis-3.0.1/src/github.com/CodisLabs/codis/pkg/topom/topom_api.go:303
github.com/CodisLabs/codis/pkg/topom.(*apiServer).GroupAddServer
0 /home/jiang_shiyi/rpmbuild/BUILD/codis-3.0.1/src/github.com/CodisLabs/codis/pkg/topom/topom_api.go:82
github.com/CodisLabs/codis/pkg/topom.(*apiServer).GroupAddServer-fm
... ...
[stack]:
2 /home/jiang_shiyi/rpmbuild/BUILD/codis-3.0.1/src/github.com/CodisLabs/codis/cmd/admin/dashboard.go:442
main.(*cmdDashboard).handleGroupCommand
1 /home/jiang_shiyi/rpmbuild/BUILD/codis-3.0.1/src/github.com/CodisLabs/codis/cmd/admin/dashboard.go:63
main.(*cmdDashboard).Main
0 /home/jiang_shiyi/rpmbuild/BUILD/codis-3.0.1/src/github.com/CodisLabs/codis/cmd/admin/main.go:72
main.main
... ...
The text was updated successfully, but these errors were encountered: