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

Set MaxStale default to 10 years and add a stale counter #2481

Merged
merged 3 commits into from
Nov 8, 2016

Conversation

kyhavlov
Copy link
Contributor

@kyhavlov kyhavlov commented Nov 7, 2016

Add a counter at consul.dns.stale_queries that tracks when an agent
serves a query that's stale by at least 5 seconds.

Fixes #2460.

Add a counter at `consul.dns.stale_queries` that tracks when an agent
serves a query that's stale by at least 5 seconds.

Fixes #2460.
@slackpad
Copy link
Contributor

slackpad commented Nov 7, 2016

Just need to update the configuration doc and should be good to go. This'll also need a note in the version-specific upgrade docs.

* <a name="max_stale"></a><a href="#max_stale">`max_stale`</a> - When [`allow_stale`](#allow_stale)
is specified, this is used to limit how stale results are allowed to be. If a Consul server is
behind the leader by more than `max_stale`, the query will be re-evaluated on the leader to get
more up-to-date results. By default, this is set to 10 years ("87600h") which effectively allows
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This'll need a "prior to Consul 0.7.1 this was 5s, in Consul 0.7.1 and later this is ..." so the docs are compatible with current versions.

@@ -178,6 +178,12 @@ These metrics give insight into the health of the cluster as a whole.
<td>timer</td>
</tr>
<tr>
<td>`consul.dns.stale_queries`</td>
<td>This increments when an agent serves a DNS query based on information from a server that is more than 5 seconds out of date.</td>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should get a note that it was added in Consul 0.7.1.

Copy link
Contributor

@slackpad slackpad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted a couple small things.

@kyhavlov kyhavlov merged commit 8e621eb into master Nov 8, 2016
@kyhavlov kyhavlov deleted the f-dns-stale-default branch November 8, 2016 19:45
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.

2 participants