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

Core: ensure unneeded Vault clients are pruned from the cache #806

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

benashz
Copy link
Collaborator

@benashz benashz commented Jun 7, 2024

Previously, the CachingClientFactory would keep all cached Vault Clients alive even if no longer had any referring objects.

With this change the CachingClientFactory will track the number of objects that reference a specific Vault client. Any client that no longer has any references will be evicted from the cache.

@benashz benashz changed the title Core: periodically prune orphan Vault Clients Core: periodically prune orphaned Vault Clients Jun 7, 2024
@benashz benashz force-pushed the VAULT-27944/core-prune-orphaned-vault-clients branch 2 times, most recently from 46f076a to e0e3ddc Compare June 8, 2024 22:51
@benashz benashz changed the title Core: periodically prune orphaned Vault Clients Core: ensure unusued Vault clients are pruned from the cache Jun 10, 2024
Previously, the CachingClientFactory would keep all cached Vault Clients
alive even if no longer had any referring objects.

This change adds a new periodic function that will prune any Vault
client that has no referring objects.

- Don't prune new clients.
@benashz benashz force-pushed the VAULT-27944/core-prune-orphaned-vault-clients branch from 2b35af5 to fe69075 Compare June 11, 2024 20:34
@benashz benashz force-pushed the VAULT-27944/core-prune-orphaned-vault-clients branch from fb5048c to 21e5cb2 Compare June 11, 2024 22:22
controllers: log status update errors
@benashz benashz changed the title Core: ensure unusued Vault clients are pruned from the cache Core: ensure unneeded Vault clients are pruned from the cache Jun 12, 2024
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.

1 participant