Skip to content

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

Closed
joshlay wants to merge 1 commit into
distribution:release/2.8from
joshlay:2.8_backport_ttl_config
Closed

joshlay wants to merge 1 commit into
distribution:release/2.8from
joshlay:2.8_backport_ttl_config

Conversation

@joshlay

@joshlay joshlay commented Oct 3, 2023

Copy link
Copy Markdown

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 <[email protected]>
Co-authored-by: Manish Tomar <[email protected]>
Signed-off-by: Shiming Zhang <[email protected]>
(cherry picked from commit 8fe4ca4)
Signed-off-by: Josh Lay <[email protected]>
@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
Copy Markdown
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
Copy Markdown
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

joshlay commented Dec 31, 2023

Copy link
Copy Markdown
Author

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.

2 participants