From 38630d8b94a55537f0d0df5f704a9318132a6f5d Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Tue, 4 Dec 2018 16:21:12 -0800 Subject: [PATCH] Increase timeouts for drain monitors. --- cmd/start.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/start.go b/cmd/start.go index 3229126..11dc786 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -17,7 +17,7 @@ func init() { // Maintenance specific flags startDrainCmd.Flags().DurationVar(&monitorInterval,"interval", time.Second * 5, "Interval at which to poll scheduler.") - startDrainCmd.Flags().DurationVar(&monitorTimeout,"timeout", time.Minute * 1, "Time after which the monitor will stop polling and throw an error.") + startDrainCmd.Flags().DurationVar(&monitorTimeout,"timeout", time.Minute * 10, "Time after which the monitor will stop polling and throw an error.") startCmd.AddCommand(startSLADrainCmd) @@ -27,7 +27,7 @@ func init() { // SLA Maintenance specific flags startSLACountDrainCmd.Flags().DurationVar(&monitorInterval,"interval", time.Second * 5, "Interval at which to poll scheduler.") - startSLACountDrainCmd.Flags().DurationVar(&monitorTimeout,"timeout", time.Minute * 1, "Time after which the monitor will stop polling and throw an error.") + startSLACountDrainCmd.Flags().DurationVar(&monitorTimeout,"timeout", time.Minute * 20, "Time after which the monitor will stop polling and throw an error.") startSLACountDrainCmd.Flags().Int64Var(&count, "count", 5, "Instances count that should be running to meet SLA.") startSLACountDrainCmd.Flags().DurationVar(&duration, "duration", time.Minute * 10, "Window of time from which we derive the SLA.")