Skip to content

Commit 8442c5c

Browse files
committed
roachtest: add GCEVolumeCount spec option
Adds option for specifying the volume count on gce. We also enable the `UseMultipleDisks` option for the gce disk setup script when we have a volume count greater than 0, which allows us to mount one volume per store for multi-store testing. Epic: none Release note: None
1 parent 7f2338b commit 8442c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/roachtest/spec/cluster_spec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func getGCEOpts(
268268
opts.PDVolumeCount = volumeCount
269269
}
270270
opts.SSDCount = localSSDCount
271-
if localSSD && localSSDCount > 0 {
271+
if (localSSD && localSSDCount > 0) || (!localSSD && volumeCount > 1) {
272272
// NB: As the default behavior for _roachprod_ (at least in AWS/GCP) is
273273
// to mount multiple disks as a single store using a RAID 0 array, we
274274
// must explicitly ask for multiple stores to be enabled, _unless_ the

0 commit comments

Comments
 (0)