Skip to content

Commit

Permalink
Merge #59405
Browse files Browse the repository at this point in the history
59405: roachprod: Use GP3 drives on AWS by default. r=miretskiy a=miretskiy

GP3 drives are better, and 20% cheaper.
Use them by default.

Release Notes: None

Co-authored-by: Yevgeniy Miretskiy <[email protected]>
  • Loading branch information
craig[bot] and Yevgeniy Miretskiy committed Jan 26, 2021
2 parents 97d14bf + 904a2fd commit 706006e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cmd/roachprod/vm/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ type ebsVolume struct {
}

const ebsDefaultVolumeSizeGB = 500
const defaultEBSVolumeType = "gp3"

// Set implements flag Value interface.
func (d *ebsDisk) Set(s string) error {
Expand Down Expand Up @@ -824,7 +825,7 @@ func (p *Provider) runInstance(name string, zone string, opts vm.CreateOpts) err
// The local NVMe devices are automatically mapped. Otherwise, we need to map an EBS data volume.
if !opts.SSDOpts.UseLocalSSD {
if len(p.opts.EBSVolumes) == 0 && p.opts.DefaultEBSVolume.Disk.VolumeType == "" {
p.opts.DefaultEBSVolume.Disk.VolumeType = "gp2"
p.opts.DefaultEBSVolume.Disk.VolumeType = defaultEBSVolumeType
}

if p.opts.DefaultEBSVolume.Disk.VolumeType != "" {
Expand Down

0 comments on commit 706006e

Please sign in to comment.