1
0
mirror of https://github.com/golang/go synced 2024-11-19 00:44:40 -07:00
go/dashboard/coordinator
Brad Fitzpatrick 005d2be0ba dashboard/coordinator: periodically clean stale VMs
This isn't used yet, but will be for the new-style builders (VMs on
GCE running the buildlet, started by the coordinator).

From the code's comments:

cleanUpOldVMs periodically enumerates virtual machines and deletes
any which have a "delete-at" attribute having a unix timestamp
before the current time. These VMs are created to run a single
build and should be shut down by a controlling process. Due to
various types of failures, they might get stranded. To prevent them
from getting stranded and wasting resources forever, we instead set
the "delete-at" metadata attribute on them when created to some
time that's well beyond their expected lifetime, and then this is
the backup mechanism to delete them if they get away.

Update golang/go#8639
Update golang/go#8640
Update golang/go#8642

Change-Id: I489e97926e7ab56487571c2bf0bd255cdf49570d
Reviewed-on: https://go-review.googlesource.com/2199
Reviewed-by: Burcu Dogan <jbd@google.com>
2015-01-02 18:48:53 +00:00
..
buildongce dashboard/coordinator: add SSD disk option, turn off auto-update 2014-12-16 05:47:43 +00:00
main.go dashboard/coordinator: periodically clean stale VMs 2015-01-02 18:48:53 +00:00
Makefile dashboard/coordinator: periodically clean stale VMs 2015-01-02 18:48:53 +00:00