-
Notifications
You must be signed in to change notification settings - Fork 173
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
使用wiki页面example-1, 直接core #23
Comments
|
问题已修复,你下载最新代码试试。 |
测试已经修复. 感谢! 请问该项目是否已经用在生产项目中? 请问有没有相关说明文档? 比如我想知道:
万分感谢! |
生产中在用
|
我仔细比较了一下MGet多个Keys和多次Get这些Keys,并没有体现出多少优越的性能。而采用pipeline可以比他们快一倍! |
@xielm12 你mget一次多少个key?你的集群是几个master? mget后跟100万个key,hiredis-vip需要4秒,而100万次get,4秒是肯定做不到的。 |
我的集群是3主3从。 我是结合我的业务测试的。同样的数据,就只把MGet的地方换成 Get,跑完我的业务数据,需要32分钟。 而采用pipeline 只要17分钟。只是pipeline偶尔会出现Server closed the connection这个问题,导致出现假死。 |
你业务里MGet后面大概跟什么数量级的key?几个?十几个?几百个? |
平均每次MGet 200多个key。 我是直接连接到redis Cluster上,没用使用proxy |
hiredis-vip的mget是按slot拆分的,Cluster是有16384个slot,可能你这200个key真好分散在200个slot上,那效率确实跟get相差无几。后续我会再优化下,属于同一个master的mget命令,批量发送,应该会有很大效率提升。 |
请问要做哪些额外的工作才能进行读写分离呢? |
gcc example3.c -o a3 -lhiredis_vip -L/usr/local/lib -I/usr/local/include/hiredis-vip -g -ggdb
请问我这是什么原因? 万分感谢
The text was updated successfully, but these errors were encountered: