coordinator: rate-limit GCE calls, put cap on number of VMs at once
Also, make Windows use regular disks for now, since its image is so
large (100 GB) and we only have 2TB of SSD quota.
This is all very conservative and paranoid for now until I figure out
what part of the coordinator was misbehaving.
Change-Id: Icead5c07cf706c2cfc4d1dd66a108649429018ac
Reviewed-on: https://go-review.googlesource.com/7910
Reviewed-by: David Crawshaw <crawshaw@golang.org>
diff --git a/dashboard/builders.go b/dashboard/builders.go
index 9e7806f..0ecda55 100644
--- a/dashboard/builders.go
+++ b/dashboard/builders.go
@@ -24,6 +24,8 @@
Go14URL string // URL to built Go 1.4 tar.gz
buildletURL string // optional override buildlet URL
+ RegularDisk bool // if true, use spinning disk instead of SSD
+
env []string // extra environment ("key=value") pairs
}
@@ -268,6 +270,7 @@
VMImage: "windows-buildlet",
machineType: "n1-highcpu-2",
Go14URL: "https://storage.googleapis.com/go-builder-data/go1.4-windows-amd64.tar.gz",
+ RegularDisk: true,
env: []string{"GOARCH=amd64", "GOHOSTARCH=amd64"},
})
addBuilder(BuildConfig{
@@ -275,6 +278,7 @@
VMImage: "windows-buildlet",
machineType: "n1-highcpu-4",
Go14URL: "https://storage.googleapis.com/go-builder-data/go1.4-windows-amd64.tar.gz",
+ RegularDisk: true,
env: []string{"GOARCH=amd64", "GOHOSTARCH=amd64"},
})
addBuilder(BuildConfig{
@@ -283,6 +287,7 @@
machineType: "n1-highcpu-2",
buildletURL: "http://storage.googleapis.com/go-builder-data/buildlet.windows-amd64",
Go14URL: "https://storage.googleapis.com/go-builder-data/go1.4-windows-386.tar.gz",
+ RegularDisk: true,
env: []string{"GOARCH=386", "GOHOSTARCH=386"},
})
}