Skip to content

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

Open
tarnfeld wants to merge 9 commits into
masterfrom
feature/etcd-record-cache
Open

Cache etcd data in memory for a few seconds to reduce etcd read throughput#27
tarnfeld wants to merge 9 commits into
masterfrom
feature/etcd-record-cache

Conversation

@tarnfeld

Copy link
Copy Markdown
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