resp-benchmark
resp-benchmark copied to clipboard
阿里云集群架构redis,同时设置--cluster 和-P 会报错Failed to execute pipeline: Received crossed slots in pipeline- CrossSlot
resp-benchmark -h r-uf6vzlf55ycn6ube3b.redis.rds.aliyuncs.com -p 6379 -a 'xxxx' --cluster -n 500000 -c 100 -P 10 "SET {key uniform 10000000} {value 64}" command: SET {key uniform 10000000} {value 64} connections: 100 count: 500000 target: unlimited seconds: 0 qps: 0(overall 0), conn: 0, no data Failed to execute pipeline: Received crossed slots in pipeline- CrossSlot
是的,已知问题。 发送给单个 db 的命令必须是同 slot 内的,这个比较难实现,加上我们没有 Pipeline 的测试需求,很少用这个参数,一直没搞。
其实不建议测试集群实例,我们在实践中也几乎不测试集群实例。测集群时往往会遇到很多瓶颈,导致数据失真。 建议测试单节点实例性能然后乘以 n 就是集群的性能。
了解了,感谢