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

Optimize performance of KV watchers #578

Merged
merged 5 commits into from
Jan 6, 2015
Merged

Optimize performance of KV watchers #578

merged 5 commits into from
Jan 6, 2015

Conversation

armon
Copy link
Member

@armon armon commented Jan 6, 2015

Previously a single NotifyGroup was used to watch for changes in the KV table. This meant that any update to the table would trigger all the blocking queries to check for an update. This meant having many watchers would add a dramatic load under high write conditions. With this change, we scope the watchers under a prefix, and only trigger watchers that may be affected by a write operation. This should vastly reduce the number of watchers that are triggered in practice, making them much more scalable.

armon added a commit that referenced this pull request Jan 6, 2015
Optimize performance of KV watchers
@armon armon merged commit 3ec5e6f into master Jan 6, 2015
@armon armon deleted the f-kv-watch branch January 6, 2015 01:11
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