summaryrefslogtreecommitdiff
path: root/event.go
diff options
context:
space:
mode:
Diffstat (limited to 'event.go')
-rw-r--r--event.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/event.go b/event.go
index 8920bdc..5c26b5d 100644
--- a/event.go
+++ b/event.go
@@ -23,6 +23,9 @@ func (h *HyperT) RestartDaemon() {
dur := time.Since(h.lastpoll) // Calculate the elapsed time
log.Info("KILLED DAEMON", h.Hostname, shell.FormatDuration(dur), "curl", url)
me.killcount += 1
+
+ // mark the cluster as unstable so droplet starts can be throttled
+ me.unstable = time.Now()
}
var stableTimeout time.Duration = 43 * time.Second