BenchmarkSQL postgresql的TPC-C测试

BenchmarkSQL安装配置
BenchmarkSQL postgresql的TPC-C测试
BenchmarkSQL oracle的TPC-C测试
Benchmarksql MySQL的TPC-C测试

资源:benchmarksql-5.0-pg-oracle-mysql.tar.gz

一,软件下载安装

下载地址:https://sourceforge.net/projects/benchmarksql/

Git仓库:https://bitbucket.org/openscg/benchmarksql

 

解压,查看帮助文档

# cat HOW-TO-RUN.txt

# ant

中间遇见问题,自己百度解决。

 

二,配置postgresql数据库

修改postgresql远程连接

# vim  /var/lib/pgsql/data/postgresql.conf

# vim  /var/lib/pgsql/data/pg_hba.conf

 

# systemctl list-unit-files |grep postgresql

# systemctl start postgresql

切换用户

# su postgres

登录数据库,创建用户,数据库

$ psql postgres

postgres=# CREATE USER benchmarksql WITH ENCRYPTED PASSWORD '123456';

postgres=# CREATE DATABASE benchmarksql OWNER benchmarksql;

postgres=# \q

bash-4.2$ exit

 

三,BenchmarkSQL配置

[root@sparkmaster benchmarksql-5.0]# cd run/

[root@sparkmaster run]# cp props.pg my_postgres.properties

[root@sparkmaster run]# vim my_postgres.properties

[root@sparkmaster run]# head my_postgres.properties

配置网卡与磁盘:

操作系统中被收集服务器的网卡名称和磁盘名称,ifconfig和df -h。"net_"和"blk_"是固定前缀,路径:

/sys/block/sda查找磁盘

/sys/class/net查找网卡

 

 

 

四,初始化数据库

# ./runDatabaseBuild.sh my_postgres.properties

 

五,测试数据

# ./runBenchmark.sh my_postgres.properties

 

六,清除数据

# ./runDatabaseDestroy.sh my_postgres.properties

 

七,参考资料

https://blog.csdn.net/msdnchina/article/details/81167888

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值