Add a new RegistryConfig field called `disable_token_refresh` that will decide whether the registry refresh token thread is started or not. It will be set to false by default but will be enabled when prefetch is enabled. The refresh thread is disabled in this case because it becomes useless once everything has been prefetched and it's unlikely that tokens would expire during the time it takes for the prefetch to run (as it would mean that regular image pulls would be likely to fail as well because they download the layers in a similar time to the prefetch) Signed-off-by: Baptiste Girard-Carrabin <baptiste.girardcarrabin@datadoghq.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| LICENSE-APACHE | ||
| LICENSE-BSD-3-Clause | ||
| README.md | ||
README.md
nydus-storage
The core storage subsystem for Nydus Image Service to:
- Fetch blob objects from storage backend such as Registry, OSS, S3, local disk and file systems etc.
- Load data from storage backend on demand.
- Cache blob objects on local storage.
Support
Platforms:
- x86_64
- aarch64
Operating Systems:
- Linux
- MacOS
License
This code is licensed under Apache-2.0 or BSD-3-Clause.