Skip to content

Commit 2af2d62

Browse files
committed
removing other broken references to start-single-node. deprecating OLTP-Bench example
1 parent 1955980 commit 2af2d62

File tree

7 files changed

+39
-13
lines changed

7 files changed

+39
-13
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* [HAProxy Example with Workload](example-haproxy-with-workload/README.md) - Simple 3 node cluster with `HAProxy` as the load balancer and a `client` node running the `tpcc` workload
1010
* [Enterprise Backup Example](example-enterprise-backup/README.md) - CockroachDB Enterprise `BACKUP` to `NGINX` based "File Server"
1111
* [YCSB Functional Example](example-ycsb/README.md) - Building and running [YCSB](https://github.com/brianfrankcooper/YCSB) against a 3 node CockroachDB cluster
12-
* [OLTPBench Functional Example](example-oltpbench/README.md) - Building and running a fork of [OLTPBench](https://github.com/timveil-cockroach/oltpbench) against a 3 node CockroachDB cluster
12+
* [OLTPBench Functional Example](example-oltpbench/README.md) - [DEPRECATED] Building and running a fork of [OLTPBench](https://github.com/timveil-cockroach/oltpbench) against a 3 node CockroachDB cluster
1313
* [Netflix Genie Metastore Example](example-netflix-genie) - Example using CockroachDB as the metastore for [Netflix Genie](https://github.com/Netflix/genie)
1414
* [Apache Druid Metastore Example](example-apache-druid) - Example using CockroachDB as the metastore for [Apache Druid](https://druid.apache.org/docs/latest/design/index.html)
1515

example-enterprise-backup/docker-compose.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
container_name: crdb-0
1010
hostname: crdb-0
1111
image: cockroachdb/cockroach:latest
12-
command: start-single-node --cluster-name=example-enterprise-backup --logtostderr=WARNING --log-file-verbosity=WARNING --insecure
12+
command: start --cluster-name=example-enterprise-backup --logtostderr=WARNING --log-file-verbosity=WARNING --insecure --join=crdb-0
1313

1414
crdb-1:
1515
container_name: crdb-1
@@ -42,6 +42,18 @@ services:
4242
- crdb-1
4343
- crdb-2
4444

45+
crdb-init:
46+
container_name: crdb-init
47+
hostname: crdb-init
48+
image: timveil/cockroachdb-remote-client:latest
49+
environment:
50+
- COCKROACH_HOST=crdb-0:26257
51+
- COCKROACH_INSECURE=true
52+
- COCKROACH_INIT=true
53+
- DATABASE_NAME=test
54+
depends_on:
55+
- lb
56+
4557
fileserver:
4658
container_name: fileserver
4759
hostname: fileserver

example-nginx/docker-compose.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
container_name: crdb-0
77
hostname: crdb-0
88
image: cockroachdb/cockroach:latest
9-
command: start-single-node --cluster-name=example-nginx --logtostderr=WARNING --log-file-verbosity=WARNING --insecure
9+
command: start --cluster-name=example-nginx --logtostderr=WARNING --log-file-verbosity=WARNING --insecure --join=crdb-0
1010

1111
crdb-1:
1212
container_name: crdb-1
@@ -34,4 +34,16 @@ services:
3434
depends_on:
3535
- crdb-0
3636
- crdb-1
37-
- crdb-2
37+
- crdb-2
38+
39+
crdb-init:
40+
container_name: crdb-init
41+
hostname: crdb-init
42+
image: timveil/cockroachdb-remote-client:latest
43+
environment:
44+
- COCKROACH_HOST=crdb-0:26257
45+
- COCKROACH_INSECURE=true
46+
- COCKROACH_INIT=true
47+
- DATABASE_NAME=test
48+
depends_on:
49+
- lb

example-oltpbench/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Running OLTP-Bench Suite Fork
1+
# Running OLTP-Bench Suite Fork (DEPRECATED)
2+
3+
> This example is deprecated as OLTP-Bench is no longer active. Please see [Benchbase](https://github.com/cmu-db/benchbase) instead.
4+
25
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.
36

47
> This is included here as a functional example. This configuration should not be considered the basis for a performance evaluation.

example-oltpbench/docker-compose.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
container_name: crdb-0
77
hostname: crdb-0
88
image: cockroachdb/cockroach:latest
9-
command: start-single-node --cluster-name=example-oltpbench --logtostderr=WARNING --log-file-verbosity=WARNING --insecure --max-sql-memory=4GB
9+
command: start --cluster-name=example-oltpbench --logtostderr=WARNING --log-file-verbosity=WARNING --insecure --join=crdb-0 --max-sql-memory=4GB
1010

1111
crdb-1:
1212
container_name: crdb-1
@@ -46,6 +46,7 @@ services:
4646
environment:
4747
- COCKROACH_HOST=crdb-0:26257
4848
- COCKROACH_INSECURE=true
49+
- COCKROACH_INIT=true
4950
- DATABASE_NAME=oltpbench
5051
depends_on:
5152
- lb
@@ -57,6 +58,4 @@ services:
5758
context: oltp-bench
5859
environment:
5960
- BENCHMARK_NAME=tpcc
60-
- BENCHMARK_CONFIG_FILE=crdb_tpcc_config.xml
61-
depends_on:
62-
- crdb-init
61+
- BENCHMARK_CONFIG_FILE=crdb_tpcc_config.xml

example-secure-nginx/docker-compose.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
container_name: roach-0
2323
hostname: roach-0
2424
image: cockroachdb/cockroach:latest
25-
command: start-single-node --cluster-name=example-secure-nginx --logtostderr=WARNING --log-file-verbosity=WARNING --certs-dir=/certs
25+
command: start --cluster-name=example-secure-nginx --logtostderr=WARNING --log-file-verbosity=WARNING --certs-dir=/certs --join=roach-0
2626
volumes:
2727
- certs-roach-0:/certs
2828
depends_on:
@@ -71,6 +71,7 @@ services:
7171
- COCKROACH_HOST=roach-0:26257
7272
- COCKROACH_INSECURE=false
7373
- COCKROACH_CERTS_DIR=/certs
74+
- COCKROACH_INIT=true
7475
- DATABASE_NAME=test
7576
- DATABASE_USER=test
7677
- DATABASE_PASSWORD=password

example-ycsb/docker-compose.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
container_name: crdb-0
77
hostname: crdb-0
88
image: cockroachdb/cockroach:latest
9-
command: start-single-node --cluster-name=example-ycsb --logtostderr=WARNING --log-file-verbosity=WARNING --insecure
9+
command: start --cluster-name=example-ycsb --logtostderr=WARNING --log-file-verbosity=WARNING --insecure --join=crdb-0
1010

1111
crdb-1:
1212
container_name: crdb-1
@@ -46,6 +46,7 @@ services:
4646
environment:
4747
- COCKROACH_HOST=crdb-0:26257
4848
- COCKROACH_INSECURE=true
49+
- COCKROACH_INIT=true
4950
- DATABASE_NAME=ycsb
5051
depends_on:
5152
- lb
@@ -62,5 +63,3 @@ services:
6263
- WORKLOAD_NAME=workload-b-cockroach
6364
- WORKLOAD_TARGET_OPS=100
6465
- WORKLOAD_RECORD_COUNT=20000
65-
depends_on:
66-
- crdb-init

0 commit comments

Comments
 (0)