文档中心 云数据库Redis(KCS) 性能白皮书 测试方法

测试方法

最近更新时间:2021-12-20 15:32:41

测试命令

memtier_benchmark -s <redis-ip> -p 6379 -a <password> -c 20 -d 32 --threads=10 --ratio=1:1 --test-time=1200

解释

命令参数 官方解释 备注
-c,–clients=NUMBER Number of clients per thread (default: 50) 模拟客户端数量,每个线程
-t, --threads=NUMBER Number of threads (default: 4) 开启的线程数
–ratio=RATIO Set:Get ratio (default: 1:10) 读写比例
–test-time=SECS Number of seconds to run the test 工具持续运行时间,单位:秒
–pipeline=NUMBER Number of concurrent pipelined requests (default: 1) 压测过程中不使用pipeline,按默认值1

测试执行

1、3台云主机为1组,同时压测同1个redis实例

2、观察redis实例中proxy节点或redis-server节点的CPU使用率,以其CPU使用率最大为原则,调整发压端数量。

上一篇:测试工具
下一篇:测试结果
以上内容是否对您有帮助?
有帮助
没帮助