diff options
Diffstat (limited to 'cmd/praefect/main.go')
-rw-r--r-- | cmd/praefect/main.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/praefect/main.go b/cmd/praefect/main.go index a0868f36d..e74e09c05 100644 --- a/cmd/praefect/main.go +++ b/cmd/praefect/main.go @@ -33,6 +33,7 @@ import ( "fmt" "os" "strings" + "time" "github.com/sirupsen/logrus" "gitlab.com/gitlab-org/gitaly/internal/bootstrap" @@ -190,7 +191,9 @@ func run(cfgs []starter.Config, conf config.Config) error { } go func() { serverErrors <- b.Wait() }() - go func() { serverErrors <- repl.ProcessBacklog(ctx) }() + go func() { + serverErrors <- repl.ProcessBacklog(ctx, praefect.ExpBackoffFunc(1*time.Second, 5*time.Minute)) + }() go coordinator.FailoverRotation() |