Skip to content
Open
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
8 changes: 6 additions & 2 deletions aws/credential_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ type CredentialsCacheOptions struct {

// ExpiryWindowJitterFrac provides a mechanism for randomizing the
// expiration of credentials within the configured ExpiryWindow by a random
// percentage. Valid values are between 0.0 and 1.0.
// percentage, helping distribute credential refresh operations over time.
// Valid values are between 0.0 and 1.0.
//
// The effective early-expiry window is randomly selected between:
// (1 - ExpiryWindowJitterFrac) * ExpiryWindow and ExpiryWindow
//
// As an example if ExpiryWindow is 60 seconds and ExpiryWindowJitterFrac
// is 0.5 then credentials will be set to expire between 30 to 60 seconds
// is 0.3 then credentials will be set to expire between 42 and 60 seconds
// prior to their actual expiration time.
//
// If ExpiryWindow is 0 or less then ExpiryWindowJitterFrac is ignored.
Expand Down