sysbench只写压测产生主键冲突

【 使用环境 】测试环境
【 OB or 其他组件 】OB
三节点ob+中控机
obproxy 和sysbench 部署在中控机

【 使用版本 】4.0.0
【问题描述】sysbench只写压测产生主键冲突
【复现路径】
使用sysbench 做clean ,prepare 再 run write_only
./sysbench ./lua/oltp_common.lua --mysql-host=127.0.0.1 --mysql-port=2883 --mysql-user=root@sysbench_tenant --mysql-password=’’ --mysql-db=test --threads=512 --table-size=10000000 --db-driver=mysql --tables=10 --report-interval=10 --time=600 clean

./sysbench ./lua/oltp_common.lua --mysql-host=127.0.0.1 --mysql-port=2883 --mysql-user=root@sysbench_tenant --mysql-password=’’ --mysql-db=test --threads=512 --table-size=10000000 --db-driver=mysql --tables=10 --report-interval=10 --time=600 prepare

./sysbench ./lua/oltp_write_only.lua --mysql-host=127.0.0.1 --mysql-port=2883 --mysql-user=root@sysbench_tenant --mysql-password=’’ --mysql-db=test --table-size=10000000 --db-driver=mysql --tables=10 --report-interval=1 --time=600 --rand-type=uniform --db-ps-mode=disable --threads=512 run

【问题现象及影响】

【附件】

1 个赞

这个工具是有概率出现的,可以增加tables数量 降低概率,或者使用4.0的obd工具, OBD test 命令一键进行 Sysbench 测试https://www.oceanbase.com/docs/community-observer-cn-10000000000901379