-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Expand file tree
/
Copy pathdrt_scale.yaml
More file actions
177 lines (176 loc) · 5.24 KB
/
Copy pathdrt_scale.yaml
File metadata and controls
177 lines (176 loc) · 5.24 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# Yaml for creating and configuring the drt-scale 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
WORKLOAD_CLUSTER: workload-scale
CLUSTER_NODES: 150
WORKLOAD_NODES: 9
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"
# workload cluster specs
- target_name: $WORKLOAD_CLUSTER
steps:
- command: create
args:
- $WORKLOAD_CLUSTER
flags:
clouds: gce
gce-zones: "us-central1-a"
nodes: $WORKLOAD_NODES
gce-machine-type: n2-standard-8
os-volume-size: 100
username: workload
lifetime: 8760h
label: usage=scale_test
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
- certs
- certs-$CLUSTER
- command: put
args:
- $WORKLOAD_CLUSTER
- certs-$CLUSTER
- certs
- command: ssh
args:
- $WORKLOAD_CLUSTER
- --
- 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_400k # suffix added to script name tpcc_init_cct_tpcc_400k.sh
- false # determines whether to execute the script immediately on workload node
flags:
warehouses: 400000
db: cct_tpcc
- script: "pkg/cmd/drtprod/scripts/tpcc_init.sh"
args:
- cct_tpcc_2000k # suffix added to script name tpcc_init_cct_tpcc_2000k.sh
- false # determines whether to execute the script immediately on workload node
flags:
warehouses: 2000000
db: cct_tpcc_big
- script: "pkg/cmd/drtprod/scripts/generate_tpcc_run.sh"
args:
- cct_tpcc_400k # 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: 400000
max-rate: 1000
workers: 400000
conns: 5000
duration: 12h
ramp: 10m
wait: 0
- script: "pkg/cmd/drtprod/scripts/generate_tpch_run.sh"
args:
- scale_factor_1000
flags:
scale-factor: 1000