-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Expand file tree
/
Copy pathdrt_scale_pcr.yaml
More file actions
76 lines (75 loc) · 2.44 KB
/
Copy pathdrt_scale_pcr.yaml
File metadata and controls
76 lines (75 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Yaml for creating and configuring the drt-scale-pcr cluster. This also configures Datadog.
# Build the roachprod and roachtest binaries (using --cross) before running this script
environment:
ROACHPROD_GCE_DEFAULT_SERVICE_ACCOUNT: 622274581499-compute@developer.gserviceaccount.com
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-scale-pcr
CLUSTER_NODES: 150
COCKROACH_VERSION: v24.3.0-beta.2
targets:
# crdb cluster specs
- target_name: $CLUSTER
steps:
- command: create
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-16
local-ssd: false
gce-pd-volume-size: 375
gce-pd-volume-type: pd-ssd
gce-pd-volume-count: 4
os-volume-size: 100
username: drt
lifetime: 8760h
label: usage=scale_test
gce-image: "ubuntu-2204-jammy-v20240319"
- command: sync
flags:
clouds: gce
- command: run
args:
- $CLUSTER
- --
- wget https://binaries.cockroachdb.com/cockroach-${COCKROACH_VERSION}.linux-amd64.tgz
- command: run
args:
- $CLUSTER
- --
- tar -xvzf cockroach-${COCKROACH_VERSION}.linux-amd64.tgz
- command: run
args:
- $CLUSTER
- --
- mv cockroach-${COCKROACH_VERSION}.linux-amd64/* .
- command: run
args:
- $CLUSTER
- --
- rm -rf cockroach-${COCKROACH_VERSION}.linux-amd64*
- 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
store-count: 4
args: --wal-failover=among-stores
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"