使用BenchMarkSQL对DM数据库进行性能测试。官方下载。官方下载的包中暂时不支持DM数据库,可在此处下载修改后的测试包。
搭建测试环境
上传BenchMarkSQL测试包并解压。
创建测试用户/表空间
创建测试表空间。示例中为 bench。
create tablespace bench datafile ‘/opt/dmdbms/data/DAMENG/bench01.dbf’ size 200;
创建测试用户。示例中名为 bench。
create user bench identified by dameng123 default tablespace bench;
grant resource,dba to cndba;
确认驱动
将对应版本的数据库JDBC驱动复制到 benchmarksql-5.0/lib/dm中。
修改props.dm
完整的 props.dm示例。其中的具体参数见[[达梦数据库BenchMarkSql测试#props dm文件参数解释]]。
[root@localhost run]# cat props.dm
db=dm
driver=dm.jdbc.driver.DmDriver
conn=jdbc:dm://192.168.159.129:5236
user=bench
password=dameng@123
warehouses=3
loadWorkers=4
terminals=16
//To run specified transactions per terminal- runMins must equal zero
runTxnsPerTerminal=0
//To run for specified minutes- runTxnsPerTerminal must equal zero
runMins=5
//Number of total transactions per minute
limitTxnsPerMin=0
//Set to true to run in 4.x compatible mode. Set to false to use the
//entire configured database evenly.
terminalWarehouseFixed=true
//The following five values must add up to 100
//The default percentages of 45, 43, 4, 4 & 4 match the TPC-C spec
newOrderWeight=45
paymentWeight=43
orderStatusWeight

本文指导如何使用BenchMarkSQL对DM数据库进行性能测试,包括搭建环境、配置参数、数据初始化、压力测试和生成报告的过程,以及关键参数的解读和调整技巧。
最低0.47元/天 解锁文章
2329

被折叠的 条评论
为什么被折叠?



