Skip to content

Commit

Permalink
dashboard: upsize machine type for windows-amd64-{longtest,race} buil…
Browse files Browse the repository at this point in the history
…ders

Start using n1-highcpu-8 machine type instead of n1-highcpu-4
for windows-amd64-longtest and windows-amd64-race builders.
Continue to use the existing n1-highcpu-4 machine type for all
other windows/386 and windows/amd64 builders for now.

The primary motivation of this change is to increase amount of
RAM available on the longtest builder from 3.6 GB to 7.2 GB,
because it is consistenly failing due to being out of memory.

Also fix minor typos, and increase consistency in comments and notes.

Updates golang/go#33951

Change-Id: Iac5da67fa584059842850a9c8deda98c242741f2
Reviewed-on: https://go-review.googlesource.com/c/build/+/208500
Reviewed-by: Brad Fitzpatrick <[email protected]>
Reviewed-by: Alexander Rakoczy <[email protected]>
  • Loading branch information
dmitshur committed Nov 25, 2019
1 parent bdcc1d0 commit 9939300
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions dashboard/builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ var Hosts = map[string]*HostConfig{
SSHUsername: "root",
},
"host-linux-stretch-morecpu": &HostConfig{
Notes: "Debian Stretch, but on n1-highcpu-8",
Notes: "Debian Stretch, but on n1-highcpu-16",
ContainerImage: "linux-x86-stretch:latest",
machineType: "n1-highcpu-16", // 16 vCPUs, 14.4 GB mem
buildletURLTmpl: "http://storage.googleapis.com/$BUCKET/buildlet.linux-amd64",
Expand Down Expand Up @@ -430,21 +430,37 @@ var Hosts = map[string]*HostConfig{
},
"host-windows-amd64-2008": &HostConfig{
VMImage: "windows-amd64-server-2008r2-v7",
machineType: "n1-highcpu-4",
machineType: "n1-highcpu-4", // 4 vCPUs, 3.6 GB mem
buildletURLTmpl: "http://storage.googleapis.com/$BUCKET/buildlet.windows-amd64",
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/go1.4-windows-amd64.tar.gz",
SSHUsername: "gopher",
},
"host-windows-amd64-2008-big": &HostConfig{
Notes: "Same as host-windows-amd64-2008, but on n1-highcpu-8",
VMImage: "windows-amd64-server-2008r2-v7",
machineType: "n1-highcpu-8", // 8 vCPUs, 7.2 GB mem
buildletURLTmpl: "http://storage.googleapis.com/$BUCKET/buildlet.windows-amd64",
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/go1.4-windows-amd64.tar.gz",
SSHUsername: "gopher",
},
"host-windows-amd64-2012": &HostConfig{
VMImage: "windows-amd64-server-2012r2-v7",
machineType: "n1-highcpu-4",
machineType: "n1-highcpu-4", // 4 vCPUs, 3.6 GB mem
buildletURLTmpl: "http://storage.googleapis.com/$BUCKET/buildlet.windows-amd64",
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/go1.4-windows-amd64.tar.gz",
SSHUsername: "gopher",
},
"host-windows-amd64-2016": &HostConfig{
VMImage: "windows-amd64-server-2016-v7",
machineType: "n1-highcpu-4",
machineType: "n1-highcpu-4", // 4 vCPUs, 3.6 GB mem
buildletURLTmpl: "http://storage.googleapis.com/$BUCKET/buildlet.windows-amd64",
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/go1.4-windows-amd64.tar.gz",
SSHUsername: "gopher",
},
"host-windows-amd64-2016-big": &HostConfig{
Notes: "Same as host-windows-amd64-2016, but on n1-highcpu-8",
VMImage: "windows-amd64-server-2016-v7",
machineType: "n1-highcpu-8", // 8 vCPUs, 7.2 GB mem
buildletURLTmpl: "http://storage.googleapis.com/$BUCKET/buildlet.windows-amd64",
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/go1.4-windows-amd64.tar.gz",
SSHUsername: "gopher",
Expand Down Expand Up @@ -1240,7 +1256,7 @@ func (c *HostConfig) MachineType() string {
// so their /workdir tmpfs can be larger. The COS
// image has no swap, so we want to make sure the
// /workdir fits completely in memory.
return "n1-standard-4" // 4 CPUs, 15GB RAM
return "n1-standard-4" // 4 vCPUs, 15 GB mem
}
return "n1-highcpu-2"
}
Expand Down Expand Up @@ -1994,7 +2010,7 @@ func init() {
})
addBuilder(BuildConfig{
Name: "windows-amd64-longtest",
HostType: "host-windows-amd64-2016",
HostType: "host-windows-amd64-2016-big",
Notes: "Windows Server 2016 with go test -short=false",
buildsRepo: func(repo, branch, goBranch string) bool {
if !defaultPlusExp(repo, branch, goBranch) {
Expand All @@ -2010,7 +2026,7 @@ func init() {
})
addBuilder(BuildConfig{
Name: "windows-amd64-race",
HostType: "host-windows-amd64-2008",
HostType: "host-windows-amd64-2008-big",
Notes: "Only runs -race tests (./race.bat)",
env: []string{
"GOARCH=amd64",
Expand Down

0 comments on commit 9939300

Please sign in to comment.