Skip to content

Commit 3c1974c

Browse files
craig[bot]shailendra-patel
andcommitted
Merge #150844
150844: drtprod: PUA changes for v25.2 r=nameisbhaskar a=shailendra-patel This PR modifies yaml file to run PUA on CRDB release v25.2. Epic: none Release note: None Co-authored-by: Shailendra Patel <[email protected]>
2 parents 0fa914d + cd1e4e2 commit 3c1974c

File tree

3 files changed

+33
-15
lines changed

3 files changed

+33
-15
lines changed

pkg/cmd/drtprod/configs/drt_pua_9.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ environment:
1818
WORKLOAD_CLUSTER: workload-pua-9
1919
WORKLOAD_NODES: 1
2020
STORE_COUNT: 2
21-
COCKROACH_VERSION: v25.1.1
21+
COCKROACH_VERSION: v25.2.0
22+
COCKROACH_UPGRADE_VERSION: v25.2.1
2223

2324
TPCC_WAREHOUSES: 5000
2425
TPCC_ACTIVE_WAREHOUSES: 5000
@@ -108,11 +109,18 @@ targets:
108109
- --
109110
- -e
110111
- "SET CLUSTER SETTING server.shutdown.drain_wait = '15s'"
111-
- command: run
112+
- command: sql
112113
args:
113-
- $CLUSTER
114+
- $CLUSTER:1
115+
- --
116+
- -e
117+
- "SET CLUSTER SETTING goschedstats.always_use_short_sample_period.enabled=true"
118+
- command: sql
119+
args:
120+
- $CLUSTER:1
114121
- --
115-
- "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"
122+
- -e
123+
- "SET CLUSTER SETTING kv.transaction.write_buffering.enabled = true"
116124
- command: load-balancer
117125
args:
118126
- create
@@ -269,7 +277,7 @@ targets:
269277
args:
270278
- $CLUSTER
271279
- release
272-
- v25.1.2
280+
- $COCKROACH_UPGRADE_VERSION
273281
flags:
274282
pause: 5m
275283
grace-period: 500

pkg/cmd/drtprod/configs/drt_pua_mr.yaml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,25 @@ environment:
1717
CLUSTER_NODES: 15
1818
WORKLOAD_NODES: 3
1919
STORE_COUNT: 2
20-
COCKROACH_VERSION: v25.1.1
20+
COCKROACH_VERSION: v25.2.0
21+
COCKROACH_UPGRADE_VERSION: v25.2.1
2122

2223
# variables used by tpcc_run_multiregion.sh
2324
NUM_REGIONS: 3
2425
NODES_PER_REGION: 5
25-
REGIONS: northamerica-northeast2,us-east5,us-east1
26+
REGIONS: us-central1,us-east5,us-east1
2627
TPCC_WAREHOUSES: 10000
2728
TPCC_ACTIVE_WAREHOUSES: 7000
2829
DB_NAME: cct_tpcc
2930
SURVIVAL_GOAL: region
3031
RUN_DURATION: 15h
31-
NUM_CONNECTIONS: 500
32+
NUM_CONNECTIONS: 3000
3233
NUM_WORKERS: 500
3334
MAX_RATE: 500
3435
MAX_CONN_LIFETIME: 3m
3536

3637
# GCP Cloud Storage bucket for storing locality-aware backups
37-
BUCKET_NORTH_AMERICA: cockroach-drt-backup-northamerica-northeast2
38+
BUCKET_NORTH_AMERICA: cockroach-drt-backup
3839
BUCKET_US_EAST_5: cockroach-drt-backup-us-east5
3940
BUCKET_US_EAST_1: cockroach-drt-backup-us-east1
4041

@@ -59,7 +60,7 @@ targets:
5960
clouds: gce
6061
gce-managed: true
6162
gce-enable-multiple-stores: true
62-
gce-zones: "northamerica-northeast2-a:2,northamerica-northeast2-b:2,northamerica-northeast2-c:1,us-east5-a:2,us-east5-b:2,us-east5-c:1,us-east1-b:2,us-east1-c:2,us-east1-d:1"
63+
gce-zones: "us-central1-a:2,us-central1-b:2,us-central1-c:1,us-east5-a:2,us-east5-b:2,us-east5-c:1,us-east1-b:2,us-east1-c:2,us-east1-d:1"
6364
nodes: $CLUSTER_NODES
6465
gce-machine-type: n2-standard-16
6566
local-ssd: true
@@ -126,11 +127,18 @@ targets:
126127
- --
127128
- -e
128129
- "SET CLUSTER SETTING server.shutdown.drain_wait = '15s'"
129-
- command: run
130+
- command: sql
130131
args:
131-
- $CLUSTER
132+
- $CLUSTER:1
133+
- --
134+
- -e
135+
- "SET CLUSTER SETTING goschedstats.always_use_short_sample_period.enabled = true"
136+
- command: sql
137+
args:
138+
- $CLUSTER:1
132139
- --
133-
- "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"
140+
- -e
141+
- "SET CLUSTER SETTING kv.transaction.write_buffering.enabled = true"
134142
- command: load-balancer
135143
args:
136144
- create
@@ -144,7 +152,7 @@ targets:
144152
- $WORKLOAD_CLUSTER
145153
flags:
146154
clouds: gce
147-
gce-zones: "northamerica-northeast2-a,us-east5-a,us-east1-b"
155+
gce-zones: "us-central1-a,us-east5-a,us-east1-b"
148156
nodes: $NUM_REGIONS
149157
gce-machine-type: n2d-standard-4
150158
os-volume-size: 100
@@ -275,7 +283,7 @@ targets:
275283
args:
276284
- $CLUSTER
277285
- release
278-
- v25.1.2
286+
- $COCKROACH_UPGRADE_VERSION
279287
flags:
280288
pause: 5m
281289
grace-period: 500

pkg/cmd/drtprod/scripts/tpcc_run_multiregion.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ echo ">> Starting tpcc workload"
7171
--survival-goal region \
7272
--regions=$REGIONS \
7373
--max-conn-lifetime=$MAX_CONN_LIFETIME \
74+
--conns=$NUM_CONNECTIONS \
75+
--local-warehouses=true \
7476
\${PGURLS_REGION[@]}
7577
EOF
7678

0 commit comments

Comments
 (0)