This example is deprecated as OLTP-Bench is no longer active. Please see Benchbase instead.
Demonstrates building and executing a fork of the OLTP-Bench
suite against a 3 node CockroachDB cluster. More information on the OLTP-Bench
fork can be found here: https://github.com/timveil-cockroach/oltpbench.
This is included here as a functional example. This configuration should not be considered the basis for a performance evaluation.
crdb-0
- CockroachDB nodecrdb-1
- CockroachDB nodecrdb-2
- CockroachDB nodelb
- HAProxy acting as load balanceroltp-bench
-OLTP-Bench
client container responsible for executing benchmark workloads
- because operation order is important, execute
./up.sh
instead ofdocker compose up
- visit the CockroachDB UI @ http://localhost:8080
- visit the HAProxy UI @ http://localhost:8081
- have fun!
The following environment
variables in docker-compose.yml
control workload execution...
BENCHMARK_NAME
- The name of the workload to run. The default value istpcc
.- Supported Values:
tpcc
tpch
ycsb
- Supported Values:
BENCHMARK_CONFIG_FILE
- The benchmark configuration file. The default iscrdb_tpcc_config.xml
.
docker compose exec crdb-0 /cockroach/cockroach sql --insecure --execute="create database tpcc;"
docker compose exec crdb-0 /bin/bash
docker compose exec crdb-1 /bin/bash
docker compose exec crdb-2 /bin/bash
docker compose exec lb /bin/sh
docker compose exec oltp-bench /bin/bash