Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the jitter time to 30 seconds. #343

Merged
merged 1 commit into from
May 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pkg/feeds/npm/npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ const (

// maxJitterMillis is the upper bound of random jitter introcude while
// issuing requests to NPM. Random jitter will be generated between 0 and
// maxJitterMillis.
maxJitterMillis = 10000
// maxJitterMillis. maxJitterMillis + the http timeout below are chosen to be
// no more than 120 seconds.
maxJitterMillis = 30000

// minJitterThreshold is the minimum number of packages that need to be fetched
// before the jitter is applied. This allows a number of packages to
Expand Down