summaryrefslogtreecommitdiff
path: root/event.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-17 15:29:47 -0500
committerJeff Carr <[email protected]>2024-10-17 15:29:47 -0500
commitc3a69690eee158e676d7ce7a5aa3088a1dc7fc7a (patch)
tree7ba2800a50d9cadc38d442f9d99ffa815d8faf82 /event.go
parent25b07096685eef2582f3dac34093dc8b0973ffa6 (diff)
clean up logging of initial scan of droplets
Signed-off-by: Jeff Carr <[email protected]>
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