Skip to content

Commit

Permalink
changefeedccl: add jitter to changefeed retry delays
Browse files Browse the repository at this point in the history
Add 10% jitter to changefeed retries, to mitigate
thundering herd PTS updates in <v24.1.

Fixes: #132602

Release note (enterprise change): Added 10% jitter to changefeed retry delays.
  • Loading branch information
asg0451 committed Oct 14, 2024
1 parent 9e12f67 commit 8b3d932
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/ccl/changefeedccl/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ var useFastRetry = envutil.EnvOrDefaultBool(
// getRetry returns retry object for changefeed.
func getRetry(ctx context.Context) Retry {
opts := retry.Options{
InitialBackoff: 5 * time.Second,
Multiplier: 2,
MaxBackoff: 10 * time.Minute,
InitialBackoff: 5 * time.Second,
Multiplier: 2,
MaxBackoff: 10 * time.Minute,
RandomizationFactor: 0.1,
}

if useFastRetry {
Expand Down

0 comments on commit 8b3d932

Please sign in to comment.