Unverified Commit 3c7512e3 authored by nownabe's avatar nownabe

📝 Add README

parent 23eebf89
Cloud RDB Benchmark
===================
# Results
## tpcc-mysql
```
warehouses = {50, 100, 500, 1000}
connections = {20, 40, 60, 80, 100}
```
# Build Databases
Make sure aws cli and gcloud are configured.
(Or configure their credentials.)
```bash
$ cd terraform
$ cp .envrc.example .envrc
$ vi .envrc
$ source .envrc
$ terraform init
$ terraform plan
$ terraform apply
```
# Benchmark Details
## tpcc-mysql
### Preparation
Install tpcc-mysql.
```bash
$ sudo yum install -y gcc make git mysql-devel
$ git clone https://github.com/Percona-Lab/tpcc-mysql.git ${HOME}/tpcc-mysql
$ cd tpcc-mysql/src
$ make
```
Download test script.
```bash
$ curl -sSL -o ${HOME}/run-tpcc.sh https://gitlab.com/nownabe/rdb-bench/raw/master/run-tpcc.sh
```
Configure MySQL credentials.
```bash
$ echo "export MYSQL_USER=user"
$ echo "export MYSQL_PASS=password"
$ echo "export MYSQL_HOST=mysql-host"
```
### Test
```bash
$ bash ${HOME}/run-tpcc.sh
```
Then see `${HOME}/log/tpcc`.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment