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

775 use tiered cache in place of caffeine cache #783

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

munishchouhan
Copy link
Member

@munishchouhan munishchouhan commented Dec 26, 2024

Add the following:

  1. AwsEcrCache
  2. RegistryLookupCache
  3. RegistryAuthCache
  4. TieredCacheKey

Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
@munishchouhan munishchouhan linked an issue Dec 26, 2024 that may be closed by this pull request
3 tasks
@munishchouhan munishchouhan marked this pull request as draft December 26, 2024 21:41
@munishchouhan munishchouhan self-assigned this Dec 26, 2024
@munishchouhan munishchouhan added the WIP Work In Progress label Dec 26, 2024
@munishchouhan
Copy link
Member Author

Tested locally with Redis:

  1. 10 parallel builds with tower token
  2. 10 parallel builds with tower token and freeze enabled

@munishchouhan
Copy link
Member Author

Tested Dev:

  1. 10 parallel builds with tower token
  2. 10 parallel builds with tower token and freeze-enabled

Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
@munishchouhan munishchouhan marked this pull request as ready for review January 2, 2025 14:52
@munishchouhan munishchouhan removed the WIP Work In Progress label Jan 2, 2025
@@ -293,4 +318,8 @@ abstract class AbstractTieredCache<V extends MoshiExchange> implements TieredCac
l1.invalidateAll()
}

void invalidate(K key) {
l1.invalidate(key.stableHash())
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a problem because it removes the value only from the caffeine cache but it remains in redis, and even worse in the in-memory cache in other nodes that may have loaded that value

Copy link
Member Author

Choose a reason for hiding this comment

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

for now, i have removed registryauthcache till the time we done find solution to invalidate it from all app instances

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.

Use tiered cache in place of Caffeine cache
2 participants