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

Add deferred sync for check output #204

Merged
merged 6 commits into from
Jun 9, 2014
Merged

Add deferred sync for check output #204

merged 6 commits into from
Jun 9, 2014

Conversation

armon
Copy link
Member

@armon armon commented Jun 9, 2014

This PR adds a new configuration check_update_interval which allows us to defer updating the output of a check which is in a steady state. The motivation for this is many checks produce slightly different output (e.g. bandwidth measures, latency, timestamps) per run, and this currently causes Consul to re-sync on almost every invocation. This defeats the edge-trigger optimizations. Now, if the state is steady, we will delay the sync for up to check_update_interval (defaults to 5m). This way the UI shows relatively up to date output, always up-to-date state, and we get a huge write reduction. For some checks running at 5s intervals, this is a 60x write reduction. Fixes #157.

armon added a commit that referenced this pull request Jun 9, 2014
Add deferred sync for check output
@armon armon merged commit cca2f5a into master Jun 9, 2014
@armon armon deleted the f-check-freq branch June 9, 2014 20:03
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.

Configurable frequency of health check output updates
1 participant