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

Cache etcd data in memory for a few seconds to reduce etcd read throughput #27

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

Conversation

tarnfeld
Copy link
Contributor

This is an experimental implementation of an in memory read-through cache for etcd keys. We'll hold data in the cache for just a few seconds, but that might be enough to significantly reduce read throughput to the underlying etcd cluster.

I'd be interested in any thoughts you may have @orls.

  • Need to add some concurrency unit tests
  • The 5 second TTL is probably too long as a default
  • Allow the cache TTL to be configurable via command line arguments

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