首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >sysbench 连接mycat测试mysql性能,报错ALERT Err2013,求解决?

sysbench 连接mycat测试mysql性能,报错ALERT Err2013,求解决?

提问于 2018-06-18 23:37:19
回答 0关注 0查看 1.4K

用sysbench测试性能,连接mycat执行语句如下:

prepare:

/usr/local/sysbench/bin/sysbench --test=oltp --mysql-host=10.20.100.10 --mysql-port=3306 --mysql-user=testmsql --mysql-password=testmsql --mysql-db=test --oltp-num-tables=10 --oltp-table-size=100000 prepare

run:

(1)、/usr/local/sysbench/bin/sysbench --test=oltp --mysql-host=10.20.100.10 --mysql-port=3306 --mysql-user=testmsql --mysql-password=testmsql --mysql-db=test --oltp-num-tables=10 --oltp-table-size=100000 --oltp-test-mode=complex --oltp-read-only=on --num-threads=1000 --max-requests=0 --max-time=120 --report-interval=10 run

(2)、/usr/local/sysbench/bin/sysbench --test=oltp --mysql-host=10.20.100.10 --mysql-port=3306 --mysql-user=testmsql --mysql-password=testmsql --mysql-db=test --oltp-num-tables=10 --oltp-table-size=100000 --oltp-test-mode=complex --db-ps-mode=disable --oltp-read-only=on --num-threads=1000 --max-requests=0 --max-time=120 --report-interval=10 run

clean:

/usr/local/sysbench/bin/sysbench --test=oltp --mysql-host=10.20.100.10 --mysql-port=3306 --mysql-user=testmsql --mysql-password=testmsql --mysql-db=test --oltp-num-tables=10 cleanup

在run的时候,使用(1)在mycat上执行会报错:

Threads started!

ALERT: failed to execute mysql_stmt_execute(): Err2013 Lost connection to MySQL server during query

FATAL: database error, exiting...

FATAL: Runner thread execute query failed (2)!

FATAL: Runner thread 2 failed with error 1

在使用(2) run的话不会报错,(1)和(2)的差别仅仅在设置了参数--db-ps-mode=disable

而且、执行(1)在直接连上mysql服务器不会报错。按道理说 --db-ps-mode仅仅只是数据数据编排报表模型,应该不影响执行才对,为什么会出现这个问题,应该怎么解决呢?

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档