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-Benchclient container responsible for executing benchmark workloads
- because operation order is important, execute
./up.shinstead 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:
tpcctpchycsb
- 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 exec -ti crdb-0 /bin/bash
docker exec -ti crdb-1 /bin/bash
docker exec -ti crdb-2 /bin/bash
docker exec -ti lb /bin/sh
docker exec -ti oltp-bench /bin/bash