Repository navigation
atelet: coalesce cold credential-provider execs - #3836
Closed
Diamond (diamondburned) wants to merge 1 commit into
Closed
Diamond (diamondburned) wants to merge 1 commit into
Diamond (diamondburned) wants to merge 1 commit into
Conversation
Concurrent cold pulls against the same container registry forked separate credential-provider subprocesses that stampeded node metadata and STS endpoints, and a throttled provider exiting 0 with an empty auth map or blank password poisoned the 1-minute response cache with anonymous credentials. Coalesce concurrent cold misses per registry (falling back to per-image flights when a plugin reports Image cache scope) with waiter-counted context cancellation that atomically removes zero-waiter flights under the plugin mutex so subsequent callers never join a cancelled execution. Filter out blank-password entries before caching, set a 5s WaitDelay on plugin commands, and retry transient HTTP 429/5xx throttling with bounded jittered backoff.
Author
|
Closing as low-priority once #3150 (
🤖 Automated reply by diamond's Jetski ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related to #3150, #3583, #3588
Concurrent cold image pulls against the same container registry forked separate credential-provider subprocesses that stampeded node metadata and STS endpoints, and a throttled provider exiting 0 with an empty
authmap or blank password poisoned the 1-minute response cache with anonymous credentials.Imagecache scope), using waiter-counted context cancellation that atomically deletes zero-waiter flights underp.muso subsequent callers never join a cancelled flight.WaitDelayon plugin subprocesses and retries transient HTTP 429/5xx throttling outputs with bounded jittered backoff.Relationship to #3150 and #3583 / #3588
#3836: #3150 eliminates per-actor STS calls inobjectstore-plugin(gcsissuer), which also removes snapshot STS traffic from competing for the project-wide 6,000/min Cloud STS quota (making our companion snapshot PR #3838 unnecessary once #3150 merges). However, #3150 does not touchatelet's kubelet OCI image-pull credential provider (cmd/atelet/internal/credentialprovider): without#3836, concurrent cold OCI image pulls on a fresh node still fork parallelauth-provider-gcpsubprocesses and cache emptyauth: {}responses for 60 s (minCacheDuration) on transient metadata/STS blips, causingUnauthenticatedpull failures on standard non-streaming OCI pulls. (Priority drops from P0 to a defensive reliability fix once #3150 merges.)exchangeclientHTTP/2 transport pooling inobjectstore-plugin, zero file overlap withcmd/atelet/internal/credentialprovider).Verification
go test -race -count=3 -shuffle=on ./cmd/atelet/internal/credentialprovider/..../hack/verify/boilerplate.sh && ./hack/verify/gofmt.sh && ./hack/verify/package-deps.sh && ./hack/verify/shellcheck.sh🤖 PR was made with the use of generative AI.