From e044aae1dfe9803135760cdd9744293cf279513c Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Fri, 3 Feb 2023 17:12:48 -0500 Subject: [PATCH] Set proper intervals for monitoring --- monitor/daemon.go | 4 ++-- monitor/monitor.go | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/monitor/daemon.go b/monitor/daemon.go index b5425c6..2a11776 100644 --- a/monitor/daemon.go +++ b/monitor/daemon.go @@ -21,8 +21,8 @@ import ( ) const ( - reloadLogListIntervalMin = 3 * time.Second // TODO-3: use 30 * time.Minute - reloadLogListIntervalMax = 9 * time.Second // TODO-3: use 90 * time.Minute + reloadLogListIntervalMin = 30 * time.Minute + reloadLogListIntervalMax = 90 * time.Minute healthCheckInterval = 24 * time.Hour ) diff --git a/monitor/monitor.go b/monitor/monitor.go index 1f403ab..12726d8 100644 --- a/monitor/monitor.go +++ b/monitor/monitor.go @@ -29,8 +29,7 @@ import ( const ( maxGetEntriesSize = 1000 - //monitorLogInterval = 5 * time.Minute // TODO-3 - monitorLogInterval = 15 * time.Second + monitorLogInterval = 5 * time.Minute ) func isFatalLogError(err error) bool {