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

[release/2.8 backport] Option to configure proxy cache TTL #4090

Closed

Conversation

joshlay
Copy link

@joshlay joshlay commented Oct 3, 2023

Currently when registry is run as proxy it tries to cleanup unused blobs from its cache after 7 days which is hard-coded. This PR makes that value configurable. One can disable caching using this option.

Continue #3238
Fixes #2736
Fixes #2367
Fixes #3704
Fixes #3879

(cherry picked from commit 8fe4ca4)

Currently when registry is run as proxy it tries to cleanup unused blobs
from its cache after 7 days which is hard-coded. This PR makes that
value configurable.

Co-authored-by: Shiming Zhang <wzshiming@foxmail.com>
Co-authored-by: Manish Tomar <manish.tomar@docker.com>
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
(cherry picked from commit 8fe4ca4)
Signed-off-by: Josh Lay <josh.lay@ibm.com>
@joshlay joshlay changed the title Option to configure proxy cache TTL [release/2.8 backport] Option to configure proxy cache TTL Oct 3, 2023
@milosgajdos
Copy link
Member

With https://github.com/distribution/distribution/releases/tag/v3.0.0-alpha.1 out I'm inclined to close this PR as it won't be merged into 2.x branch. All the further development are going into getting a stable v3 release out next year.

@milosgajdos
Copy link
Member

Closing as with https://github.com/distribution/distribution/releases/tag/v3.0.0-alpha.1 out we won't be adding anything into the v2.x branch which will be deprecated very soon.

@joshlay joshlay deleted the 2.8_backport_ttl_config branch December 31, 2023 00:07
@joshlay
Copy link
Author

joshlay commented Dec 31, 2023

Thank you for the consideration, Milos. I've meant to give v3 a try but haven't taken the time (so far)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants