-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Conversation
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.
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 |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Add a counter at
consul.dns.stale_queries
that tracks when an agentserves a query that's stale by at least 5 seconds.
Fixes #2460.