sysbench、mysql-tpcc、tpch安装和压测计划

安装yum repo,mysql 5.7和mysql-devel - https://dev.mysql.com/downloads/repo/yum/
rpm -Uvh mysql80-community-release-el7-3.noarch.rpm
yum repolist all
yum-config-manager --disable mysql80-community
yum-config-manager --enable mysql57-community
yum install mysql-community-server
yum install mysql-devel

安装sysbench - https://dev.mysql.com/downloads/benchmarks.html
cd /scratch/tidb/sysbench-0.4.12.14
./autogen.sh
./configure --prefix=/usr/sysbench/ --with-mysql-includes=/usr/include/mysql/ --with-mysql-libs=/usr/lib64/mysql/ --with-mysql
make
make install
/usr/sysbench/bin/sysbench --version

安装mysql-tpcc - https://github.com/Percona-Lab/tpcc-mysql
unzip tpcc-mysql-master.zip
cd tpcc-mysql-master/src
make

安装tpch - http://www.tpc.org
unzip TPC-H_Tools_v2.18.0.zip
mv 2.18.0_rc2 tpch_2.18.0_rc2
cd tpch_2.18.0_rc2/dbgen
cp makefile.suite makefile
vi makefile
CC = gcc
DATABASE= MYSQL
MACHINE = LINUX
WORKLOAD = TPCH
vi tpcd.h
#ifdef MYSQL
#define GEN_QUERY_PLAN “”
#define START_TRAN “START TRANSACTION”
#define END_TRAN “COMMIT”
#define SET_OUTPUT “”
#define SET_ROWCOUNT “limit %d;\n”
#define SET_DBASE “use %s;\n”
#endif
make

用sysbench、mysql-tpcc、tpch压测陌生的数据库TiDB,我倾向于以下7个子计划:

  1. sysbench 100% DML
  2. sysbench 100% Query
  3. load tpcc data
  4. mysql-tpcc
  5. load tpch data
  6. tpch
  7. if possible, wanna run both tpch+tpcc
    数据量:TPCH 100G; TPCC 20仓库
    测试时间: 收集Rampup到Rampdown的全部性能数据
    输出:response time & throughput图(如果压测工具有现成的数据), cpu, mem, io, net图,稳定运行阶段的perf 5~10分钟数据

你可能感兴趣的:(sysbench)