-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: implement simpler first token request
Nydusd uses a registry backend which generates a surge of blob requests without auth tokens on initial startup. This caused mirror backends (e.g. dragonfly) to process very slowly, the commit fixes this problem. It implements waiting for the first blob request to complete before making other blob requests, this ensures the first request caches a valid registry auth token, and subsequent concurrent blob requests can reuse the cached token. This change is worthwhile to reduce concurrent token requests, it also makes the behavior consistent with containerd, which first requests the image manifest and caches the token before concurrently requesting blobs. Signed-off-by: Yan Song <[email protected]>
- Loading branch information
Showing
1 changed file
with
63 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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