Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce cache flush rules [RHELDST-26144] #734

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

rohanpm
Copy link
Member

@rohanpm rohanpm commented Aug 14, 2024

This change extends the cache flush config to support separate rules with different templates, enabled via patterns matched against candidate paths for flush.

The goal here is to reduce the amount of unnecessarily flushed URLs/ARLs. In typical scenarios, we have three different CDN hosts in front of a single exodus-gw environment, with certain subtrees being only available from certain hosts. With the flat config structure existing before this change, we had no choice but to flush cache keys for all three of them for every path, even though each path is only relevant to one of the hosts. Hence, we were flushing 3x as many ARLs as we should be.

With this change we can update the configuration to only flush cache for the necessary CDN host for each subtree, significantly cutting down the number of cache keys for flush.

This commit is backwards-compatible with the old config style, so it can be safely deployed before updating exodus-gw.ini.

This change extends the cache flush config to support separate rules
with different templates, enabled via patterns matched against candidate
paths for flush.

The goal here is to reduce the amount of unnecessarily flushed
URLs/ARLs. In typical scenarios, we have three different CDN hosts in
front of a single exodus-gw environment, with certain subtrees being
only available from certain hosts. With the flat config structure
existing before this change, we had no choice but to flush cache keys
for all three of them for every path, even though each path is only
relevant to one of the hosts. Hence, we were flushing 3x as many ARLs as
we should be.

With this change we can update the configuration to only flush cache for
the necessary CDN host for each subtree, significantly cutting down the
number of cache keys for flush.

This commit is backwards-compatible with the old config style, so it can
be safely deployed before updating exodus-gw.ini.
@rohanpm rohanpm marked this pull request as ready for review August 14, 2024 05:50
@rohanpm rohanpm merged commit 6f256ed into release-engineering:master Aug 14, 2024
3 checks passed
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.

3 participants