Page MenuHomePhabricator

redis for docker-registry should have maxmemory-policy set to allkeys-lru
Closed, ResolvedPublic

Description

From https://docs.docker.com/registry/configuration/#redis

You should configure Redis with the allkeys-lru eviction policy, because the registry does not set an expiration value on keys.

localhost:6382> config get maxmemory-policy
1) "maxmemory-policy"
2) "volatile-lru"

Event Timeline

Change 608600 had a related patch set uploaded (by Alexandros Kosiaris; owner: Alexandros Kosiaris):
[operations/puppet@production] redis::misc: Set docker-registry maxmemory-policy

https://gerrit.wikimedia.org/r/c/operations/puppet/ /608600

Change 608600 merged by Alexandros Kosiaris:
[operations/puppet@production] redis::misc: Set docker-registry maxmemory-policy

https://gerrit.wikimedia.org/r/c/operations/puppet/ /608600

Change 608893 had a related patch set uploaded (by Alexandros Kosiaris; owner: Alexandros Kosiaris):
[operations/puppet@production] redis::misc: Correct typo in instance_overrides

https://gerrit.wikimedia.org/r/c/operations/puppet/ /608893

Change 608893 merged by Alexandros Kosiaris:
[operations/puppet@production] redis::misc: Correct typo in instance_overrides

https://gerrit.wikimedia.org/r/c/operations/puppet/ /608893

Double checked across all nodes, this has been applied successfully. Resolving. Thanks!