File tree Expand file tree Collapse file tree 5 files changed +23
-5
lines changed Expand file tree Collapse file tree 5 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ environment:
13
13
WORKLOAD_CLUSTER : workload-pua-9
14
14
WORKLOAD_NODES : 1
15
15
STORE_COUNT : 2
16
+ COCKROACH_ROACHPROD_INSECURE : false
16
17
17
18
TPCC_WAREHOUSES : 5000
18
19
TPCC_ACTIVE_WAREHOUSES : 5000
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ environment:
12
12
CLUSTER_NODES : 15
13
13
WORKLOAD_NODES : 3
14
14
STORE_COUNT : 2
15
+ COCKROACH_ROACHPROD_INSECURE : false
15
16
16
17
# variables used by tpcc_run_multiregion.sh
17
18
NUM_REGIONS : 3
@@ -34,6 +35,7 @@ environment:
34
35
35
36
dependent_file_locations :
36
37
- artifacts/roachprod
38
+ - artifacts/drtprod
37
39
- artifacts/roachtest
38
40
- pkg/cmd/drtprod/scripts/setup_dmsetup_disk_staller
39
41
- pkg/cmd/drtprod/scripts/setup_datadog_cluster
@@ -60,7 +62,7 @@ targets:
60
62
gce-local-ssd-count : $STORE_COUNT
61
63
os-volume-size : 100
62
64
username : drt
63
- lifetime : 8760h
65
+ lifetime : 15h
64
66
on_rollback :
65
67
- command : destroy
66
68
args :
@@ -150,7 +152,7 @@ targets:
150
152
gce-machine-type : n2d-standard-4
151
153
os-volume-size : 100
152
154
username : workload
153
- lifetime : 8760h
155
+ lifetime : 15h
154
156
on_rollback :
155
157
- command : destroy
156
158
args :
@@ -171,6 +173,11 @@ targets:
171
173
- $WORKLOAD_CLUSTER
172
174
- artifacts/roachprod
173
175
- roachprod
176
+ - command : put
177
+ args :
178
+ - $WORKLOAD_CLUSTER
179
+ - artifacts/drtprod
180
+ - drtprod
174
181
- command : put
175
182
args :
176
183
- $WORKLOAD_CLUSTER:1
@@ -368,3 +375,4 @@ targets:
368
375
- $CLUSTER:11-15
369
376
flags :
370
377
restart : true
378
+ wait_after : 3300
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ if [ -z "${PARTITION_TYPE}" ]; then
65
65
fi
66
66
67
67
export ROACHPROD_DISABLED_PROVIDERS=IBM
68
+ # Clusters created via drtprod default to secure mode. This script is intended to
69
+ # run on secure clusters. In the past we have run into compatibility issues
70
+ # between roachprod and drtprod. To make this script resilient to incompatibility
71
+ # and allow use with insecure clusters, we can configure this env variable.
72
+ export COCKROACH_ROACHPROD_INSECURE=" ${COCKROACH_ROACHPROD_INSECURE:- false} "
68
73
69
74
get_partitions_in_range () {
70
75
local start=$(( $1 - 1 ))
@@ -122,6 +127,7 @@ for ((NODE=0; NODE<WORKLOAD_NODES; NODE++)); do
122
127
123
128
export ROACHPROD_DISABLED_PROVIDERS=IBM
124
129
export ROACHPROD_GCE_DEFAULT_PROJECT=$ROACHPROD_GCE_DEFAULT_PROJECT
130
+ export COCKROACH_ROACHPROD_INSECURE="${COCKROACH_ROACHPROD_INSECURE:- false} "
125
131
./drtprod sync
126
132
127
133
PGURLS=\$ (./drtprod load-balancer pgurl $CLUSTER | sed s/\'//g)
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ if [ -z "${WORKLOAD_CLUSTER}" ]; then
37
37
fi
38
38
39
39
export ROACHPROD_DISABLED_PROVIDERS=IBM
40
+ export COCKROACH_ROACHPROD_INSECURE=" ${COCKROACH_ROACHPROD_INSECURE:- false} "
40
41
41
42
absolute_path=$( drtprod run " ${WORKLOAD_CLUSTER} " :1 -- " realpath ./cockroach" )
42
43
pwd=$( drtprod run " ${WORKLOAD_CLUSTER} " :1 -- " dirname ${absolute_path} " )
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ for var in "${env_vars[@]}"; do
29
29
done
30
30
31
31
export ROACHPROD_DISABLED_PROVIDERS=IBM
32
+ export COCKROACH_ROACHPROD_INSECURE=" ${COCKROACH_ROACHPROD_INSECURE:- false} "
32
33
33
34
for NODE in $( seq 1 $NUM_REGIONS )
34
35
do
49
50
50
51
export ROACHPROD_DISABLED_PROVIDERS=IBM
51
52
export ROACHPROD_GCE_DEFAULT_PROJECT=$ROACHPROD_GCE_DEFAULT_PROJECT
52
- ./roachprod sync
53
- PGURLS=\$ (./roachprod load-balancer pgurl $CLUSTER | sed s/\'//g)
53
+ export COCKROACH_ROACHPROD_INSECURE="${COCKROACH_ROACHPROD_INSECURE:- false} "
54
+ ./drtprod sync
55
+ PGURLS=\$ (./drtprod load-balancer pgurl $CLUSTER | sed s/\'//g)
54
56
if [ -z "\$ PGURLS" ]; then
55
57
echo ">> No load-balancer configured; falling back to direct pgurl"
56
- PGURLS=\$ (./roachprod pgurl $CLUSTER | sed s/\'//g)
58
+ PGURLS=\$ (./drtprod pgurl $CLUSTER | sed s/\'//g)
57
59
fi
58
60
read -r -a PGURLS_REGION <<< "\$ PGURLS"
59
61
You can’t perform that action at this time.
0 commit comments