Skip to content

mitm: LRU cache for certificates #971

Merged
mmatczuk merged 5 commits intomainfrom
mmt/cert_lru
Dec 3, 2024
Merged

mitm: LRU cache for certificates #971
mmatczuk merged 5 commits intomainfrom
mmt/cert_lru

Conversation

@mmatczuk
Copy link
Contributor

@mmatczuk mmatczuk commented Dec 2, 2024

No description provided.

Use sharded cache, reduce cache collisions.
Enable custom cache parameters, register cache metrics.
    --mitm-cache-size <size> (default 1024) (env FORWARDER_MITM_CACHE_SIZE)
        Maximum number of certificates to cache. If the cache is full, the least recently used certificate is removed.

    --mitm-cache-ttl <duration> (default 6h0m0s) (env FORWARDER_MITM_CACHE_TTL)
        Expiration time of the cached certificates.
Copy link
Contributor

@Choraden Choraden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mmatczuk mmatczuk merged commit 1d097c9 into main Dec 3, 2024
@mmatczuk mmatczuk deleted the mmt/cert_lru branch December 3, 2024 11:49
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