Uploaded image for project: 'Multiple Architecture Enablement'
  1. Multiple Architecture Enablement
  2. MULTIARCH-4285

Implement cache eviction policy

XMLWordPrintable

    • BU Product Work
    • False
    • None
    • False
    • NEW
    • OCPSTRAT-1290 - [GA] Multiarch Tuning Operator
    • x86_64, ppc64le, s390x, aarch64
    • Multi-Arch Sprint 259, Multi-Arch Sprint 260

      Inspection caching is partially implemented and bypassed as in https://issues.redhat.com/browse/MIXEDARCH-328

      The cache was disabled in https://github.com/openshift/multiarch-tuning-operator/commit/1679c05e97abe09c94f163fbde91cce46a06d4f5 because it has no eviction policy and can lead to leaking metadata for consumers that shouldn't be able to access a given image's metadata and even pull it.

       

      Acceptance criteria:

      1. An eviction policy for the cache is considered. The current implementation fill the cache for each MISS, and never evict entries.

      Nice to have:

      1. expose cache size as a prometheus gauge

       

      Cache eviction policy

      We can use https://github.com/hashicorp/golang-lru, following the last example in the readme, capacity 512, TTL 4hr.

       

              tzivkovi@redhat.com Tori Zivkovic
              rhn-support-adistefa Alessandro Di Stefano
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: