From 914a609364418574255042d5590583491e2db83c Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Mon, 28 Oct 2024 08:46:31 -0600 Subject: [PATCH] support 4hr delayed replicas --- pkg/check/settings.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/check/settings.go b/pkg/check/settings.go index 57ee421c..1001a7b4 100644 --- a/pkg/check/settings.go +++ b/pkg/check/settings.go @@ -25,9 +25,9 @@ func settingsCheck(ctx context.Context, r Resources, logger loggers.Advanced) er if r.TargetChunkTime < 100*time.Millisecond || r.TargetChunkTime > 5*time.Second { return errors.New("--target-chunk-time must be in the range of 100ms-5s") } - // ReplicaMaxLag must be in the range of 10s-1hr - if r.ReplicaMaxLag < 10*time.Second || r.ReplicaMaxLag > time.Hour { - return errors.New("--replica-max-lag must be in the range of 10s-1hr") + // ReplicaMaxLag must be in the range of 10s-4hr + if r.ReplicaMaxLag < 10*time.Second || r.ReplicaMaxLag > time.Hour*4 { + return errors.New("--replica-max-lag must be in the range of 10s-4hr") } return nil }