forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
135549: drtprod: drt-test example yaml changes r=vidit-bhat a=nameisbhaskar I have made some changes to the drt-test script to make it better for demo purpose. Also, I have made some minor tweaks in the scripts to make it more robust Epic: none Release note: None Co-authored-by: Bhaskarjyoti Bora <[email protected]>
- Loading branch information
Showing
5 changed files
with
114 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,95 @@ | ||
# Yaml to create a test-cluster. Please make sure that you change the cluster names to avoid conflicts. | ||
environment: | ||
ROACHPROD_GCE_DEFAULT_PROJECT: cockroach-ephemeral | ||
ROACHPROD_GCE_DEFAULT_SERVICE_ACCOUNT: [email protected] | ||
ROACHPROD_DNS: drt.crdb.io | ||
ROACHPROD_GCE_DNS_DOMAIN: drt.crdb.io | ||
ROACHPROD_GCE_DNS_ZONE: drt | ||
ROACHPROD_GCE_DEFAULT_PROJECT: cockroach-drt | ||
CLUSTER: drt-test | ||
WORKLOAD_CLUSTER: workload-test | ||
CLUSTER_NODES: 3 | ||
WORKLOAD_NODES: 1 | ||
|
||
targets: | ||
# crdb cluster specs | ||
- target_name: $CLUSTER | ||
steps: | ||
- command: create | ||
args: | ||
- $CLUSTER | ||
flags: | ||
clouds: gce | ||
nodes: 1 | ||
username: drt | ||
gce-machine-type: n2-standard-2 | ||
gce-use-spot: true | ||
on_rollback: | ||
- command: destroy | ||
- command: create | ||
args: | ||
- $CLUSTER | ||
- command: stage | ||
args: | ||
- $CLUSTER | ||
- cockroach | ||
- command: start | ||
args: | ||
- $CLUSTER | ||
flags: | ||
clouds: gce | ||
gce-managed: true | ||
gce-enable-multiple-stores: true | ||
gce-zones: "us-central1-a" | ||
nodes: $CLUSTER_NODES | ||
gce-machine-type: n2-standard-2 | ||
username: drt | ||
on_rollback: | ||
- command: destroy | ||
args: | ||
- $CLUSTER | ||
- command: sync | ||
flags: | ||
clouds: gce | ||
- command: stage | ||
args: | ||
- $CLUSTER | ||
- cockroach | ||
- script: "pkg/cmd/drtprod/scripts/setup_datadog_cluster" | ||
- command: start | ||
args: | ||
- $CLUSTER | ||
- "--binary" | ||
- "./cockroach" | ||
flags: | ||
# add flag to set provisioned throughput on each store according to their cloud provider limits | ||
enable-fluent-sink: true | ||
restart: false | ||
sql-port: 26257 | ||
- command: run | ||
args: | ||
- $CLUSTER | ||
- -- | ||
- "sudo systemctl unmask cron.service ; sudo systemctl enable cron.service ; echo \"crontab -l ; echo '@reboot sleep 100 && ~/cockroach.sh' | crontab -\" > t.sh ; sh t.sh ; rm t.sh" | ||
# workload cluster specs | ||
- target_name: $WORKLOAD_CLUSTER | ||
steps: | ||
- command: create | ||
args: | ||
- $WORKLOAD_CLUSTER | ||
flags: | ||
nodes: 1 | ||
username: workload | ||
on_rollback: | ||
- command: destroy | ||
- command: create | ||
args: | ||
- $WORKLOAD_CLUSTER | ||
flags: | ||
clouds: gce | ||
gce-zones: "us-central1-a" | ||
nodes: $WORKLOAD_NODES | ||
gce-machine-type: n2-standard-2 | ||
os-volume-size: 100 | ||
username: workload | ||
on_rollback: | ||
- command: destroy | ||
args: | ||
- $WORKLOAD_CLUSTER | ||
- command: sync | ||
flags: | ||
clouds: gce | ||
- command: stage | ||
args: | ||
- $WORKLOAD_CLUSTER | ||
- cockroach | ||
- command: stage | ||
args: | ||
- $WORKLOAD_CLUSTER | ||
- workload | ||
- script: "pkg/cmd/drtprod/scripts/setup_datadog_workload" | ||
- target_name: post_tasks | ||
dependent_targets: | ||
- $CLUSTER | ||
- $WORKLOAD_CLUSTER | ||
steps: | ||
- script: rm | ||
args: | ||
- -rf | ||
- certs-$CLUSTER | ||
- command: get | ||
args: | ||
- $CLUSTER:1 | ||
|
@@ -59,3 +107,33 @@ targets: | |
- chmod | ||
- 600 | ||
- './certs/*' | ||
- command: put | ||
args: | ||
- $WORKLOAD_CLUSTER | ||
- artifacts/roachprod | ||
- roachprod | ||
- command: put | ||
args: | ||
- $WORKLOAD_CLUSTER | ||
- artifacts/roachtest | ||
- roachtest-operations | ||
- script: "pkg/cmd/drtprod/scripts/tpcc_init.sh" | ||
args: | ||
- cct_tpcc_1k # suffix added to script name tpcc_init_cct_tpcc_400k.sh | ||
- true # determines whether to execute the script immediately on workload node | ||
flags: | ||
warehouses: 1000 | ||
db: cct_tpcc | ||
- script: "pkg/cmd/drtprod/scripts/generate_tpcc_run.sh" | ||
args: | ||
- cct_tpcc_1k # suffix added to script name tpcc_run_400k.sh | ||
- false # determines whether to execute the script immediately on workload node | ||
flags: | ||
db: cct_tpcc | ||
warehouses: 1000 | ||
max-rate: 100 | ||
workers: 50 | ||
conns: 100 | ||
duration: 12h | ||
ramp: 10m | ||
wait: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters