Skip to content

Commit

Permalink
support 4hr delayed replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
morgo committed Oct 28, 2024
1 parent c396803 commit 914a609
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/check/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 914a609

Please sign in to comment.