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

Check update stagger #884

Merged
merged 4 commits into from
May 4, 2015
Merged

Conversation

artushin
Copy link
Contributor

Adding an optional stagger to the CheckUpdateInterval so that when consul runs in an environment with very frequency checks, all of those checks are not flushed at the same time when the CheckUpdateInterval expires. The stagger has a configurable on/off as "check_update_stagger" in the config and staggers between .5 and 1.5 of the CheckUpdateInterval.

@ryanbreen
Copy link
Contributor

You might want to look at the existing randomStagger: https://github.com/hashicorp/consul/blob/master/command/agent/util.go#L40

@ryanbreen
Copy link
Contributor

Also, not sure how @ryanuber and @armon feel about this, but I'm not convinced this needs to be configurable. A little bit of stagger by default seems like the right approach.

@artushin
Copy link
Contributor Author

Hah, yeah, I actually pulled the logic from that function but for some reason though it was in a different package. Updated that.

@ryanuber and @armon, let me know what you think about it being configurable. I added it so that the behavior doesn't change for existing users unexpectedly but it may be a small change that would actually help everyone.

@ryanuber
Copy link
Member

So the situation this would help under would be a server with a very large amount of checks, all with frequently changing output and stable statuses. Since this is such a minor optimization, I don't think we need to introduce a configuration option to enable/disable it.

@artushin
Copy link
Contributor Author

Dropped the stagger on/off config.

armon added a commit that referenced this pull request May 4, 2015
@armon armon merged commit 19bf116 into hashicorp:master May 4, 2015
@armon
Copy link
Member

armon commented May 4, 2015

Thanks!

duckhan pushed a commit to duckhan/consul that referenced this pull request Oct 24, 2021
The AKS nightly tests panicked twice in the last 3 days after the 40m timeout.

The tests used to have a 40m timeout per package, but a recent PR changed them to all run together. So, it needs a lot longer timeout to run all the tests together.

This commit increases the test timeout to 2h. It also increases the no_output_timeout to slightly longer than that since there's no output until the tests finish.
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.

4 participants