使用环境 】测试环境
【 OB or 其他组件 】
【 使用版本 】社区版4.2
【问题描述】
当使用的 OBClient 版本大于等于 2.2.0 时,会默认开启 ob20 协议以及全链路追踪的能力,在 Sysbench 测试中会影响性能,建议通过设置环境变量手动关闭:export ENABLE_PROTOCOL_OB20=0
。[执行了]
按照下面文档
obd 工具做性能测试时候。
https://www.oceanbase.com/docs/common-oceanbase-database-cn-0000000001953499
问题1 :
OBD-5000: alter system set _trace_control_info=%s tenant=“tpctest” execute failed
在执行obd 一键性能测试时候 ,obd 优化参数报错
在按照上面文档操作过程过程
./ob_sysbench.sh
Get local repositories and plugins ok
Cluster status check ok
Connect to observer ok
Optimize for stage test x
[ERROR] OBD-5000: alter system set _trace_control_info=%s tenant="tpctest" execute failed
[ERROR] Failed to optimize system_config
手工执行:
obclient [oceanbase]> alter system set _trace_control_info=’%s’ tenant=“tpctest”;
ERROR 4179 (HY000): alter the parameter _trace_control_info not allowe
- 执行其其他类型测试也是如此
问: 如何关闭 这个 特性 _trace_control_info
性能测试场景可以根据需要关闭该功能。
问2: 不用obd 一键执行 ,sql命令和obd客户端都可以登陆。
手工执行;
sysbench oltp_read_write.lua --mysql-port=2281 --mysql-db=sysbench_test --mysql-user="root@tpctest" --table_size=10000 --tables=5 --threads=2 --report-interval=10 --rand-type=uniform --time=60 prepare
错误链接不上
ATAL: error 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
FATAL: `sysbench.cmdline.call_command' function failed: ./oltp_common.lua:83: connection creation failed
FATAL: error 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
FATAL: `sysbench.cmdline.call_command' function failed: ./oltp_common.lua:83: connection creation faile
增加 ip 地址:
sysbench /usr/share/sysbench/oltp_read_write.lua --mysql-host=127.0.0.1 --mysql-port=2281 --mysql-db=sysbench_test --mysql-user="root@tpctest" --table_size=10000 --tables=5 --threads=2 --report-interval=10 --rand-type=uniform --time=60 prepare
FATAL: error 2003: Can't connect to MySQL server on '127.0.0.1' (111)
FATAL: `sysbench.cmdline.call_command' function failed: /usr/share/sysbench/oltp_common.lua:83: connection creation failed
FATAL: error 2003: Can't connect to MySQL server on '127.0.0.1' (111)
FATAL: `sysbench.cmdline.call_command' function failed: /usr/share/sysbench/oltp_common.lua:83: connection creation failed