"should" -> "must" regarding redis eviction policy#4742
Merged
wy65701436 merged 1 commit intodistribution:mainfrom Nov 21, 2025
Merged
"should" -> "must" regarding redis eviction policy#4742wy65701436 merged 1 commit intodistribution:mainfrom
wy65701436 merged 1 commit intodistribution:mainfrom
Conversation
Member
|
Please sign your commit |
Contributor
Author
|
@milosgajdos "This commit was created on GitHub.com and signed with GitHub’s verified signature." Sounds like it is signed. Let me know what needs to be done. |
Member
|
Doesnt seem to be, no https://github.com/distribution/distribution/pull/4742/checks?check_run_id=55849257265 See: https://github.com/distribution/distribution/blob/main/CONTRIBUTING.md#sign-your-work Maybe GH is just bad at this |
Signed-off-by: Dave Pedu <dave@davepedu.com>
Contributor
Author
|
@milosgajdos ah, I misunderstood what kind of signature. I have updated the commit. Thank you! |
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.
I run an instance of Distribution that is used to store images as well as a build cache for docker image builds e.g.
docker buildx build --cache-from type=registry,ref=my-registry.domain.com/repo:tag ...Upon upgrading from registry 2.8.1 to 3.0.0, the above command could no longer push layers to Distribution to be cached (note that this has been anonymized):
And Distribution logs the following (also anonymized):
The
OOM command not allowed when used memory > 'maxmemory'.message is logged when attempting to write to a full redis instance:And upon rolling back to distribution 2.8.1, uploading cache items works again. Without clearing redis. Likewise, I was able to push cache objects to a registry 3.0.0 instance with a healthy redis backing it.
It appears to me that 3.x returns an error to the client upon encountering issues with redis, but 2.x did not. Or 2.x did not involve the cache on this path. This is fine, but the documentation should be updated to note that this is critical, not optional.
I am using redis via Amazon's Elasticache service where the default
maxmemory-policyisvolatile-lru. This policy only evicts keys that have the expire field set to true. Distribution does not set an expiration value on keys, so this configuration will eventually lead to redis filling up and distribution returning errors.I am not sure if regular image pushing is affected as well, I have only tested caching.