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

189

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



