-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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 timing stats to publication process #76771
Merged
DaveCTurner
merged 10 commits into
elastic:master
from
DaveCTurner:2021-08-20-master-publication-stats
Aug 23, 2021
Merged
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9bdb2c9
Add timing stats to publication process
DaveCTurner 211c13e
Hoisted by my own pedantic petard
DaveCTurner eab60c3
Docs copy/paste error
DaveCTurner bd8ef0c
Comment on NOT_SET
DaveCTurner 8e7477a
Check context-construction time is measured
DaveCTurner 9b0c5f3
Introduce ThreadPool#rawRelativeTimeInMillis
DaveCTurner be888f6
Precommit
DaveCTurner bd244dd
Moar docs
DaveCTurner ab2fde0
Rename master timing -> cluster state update stats
DaveCTurner bee970a
More docs
DaveCTurner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,99 @@ | |
- gte: { nodes.$master.discovery.published_cluster_states.incompatible_diffs: 0 } | ||
- gte: { nodes.$master.discovery.published_cluster_states.compatible_diffs: 0 } | ||
- is_false: nodes.$master.roles | ||
|
||
--- | ||
"Master timing stats": | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Really just asserting that the stats really do come out of the API and that we do the right thing with |
||
- skip: | ||
features: [arbitrary_key] | ||
version: "- 7.99.99" | ||
reason: "master timing stats added in 8.0.0" | ||
|
||
- do: | ||
nodes.info: | ||
node_id: _master | ||
- set: | ||
nodes._arbitrary_key_: master | ||
|
||
- do: | ||
nodes.stats: | ||
metric: [ discovery ] | ||
|
||
- gte: { nodes.$master.discovery.master_timing.unchanged.count: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.unchanged.computation_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.unchanged.notification_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.count: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.computation_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.publication_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.context_construction_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.commit_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.completion_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.master_apply_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.notification_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.count: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.computation_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.publication_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.context_construction_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.commit_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.completion_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.master_apply_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.notification_time_millis: 0 } | ||
|
||
- is_false: nodes.$master.discovery.master_timing.unchanged.computation_time | ||
- is_false: nodes.$master.discovery.master_timing.unchanged.notification_time | ||
- is_false: nodes.$master.discovery.master_timing.success.computation_time | ||
- is_false: nodes.$master.discovery.master_timing.success.publication_time | ||
- is_false: nodes.$master.discovery.master_timing.success.context_construction_time | ||
- is_false: nodes.$master.discovery.master_timing.success.commit_time | ||
- is_false: nodes.$master.discovery.master_timing.success.completion_time | ||
- is_false: nodes.$master.discovery.master_timing.success.master_apply_time | ||
- is_false: nodes.$master.discovery.master_timing.success.notification_time | ||
- is_false: nodes.$master.discovery.master_timing.failure.computation_time | ||
- is_false: nodes.$master.discovery.master_timing.failure.publication_time | ||
- is_false: nodes.$master.discovery.master_timing.failure.context_construction_time | ||
- is_false: nodes.$master.discovery.master_timing.failure.commit_time | ||
- is_false: nodes.$master.discovery.master_timing.failure.completion_time | ||
- is_false: nodes.$master.discovery.master_timing.failure.master_apply_time | ||
- is_false: nodes.$master.discovery.master_timing.failure.notification_time | ||
|
||
- do: | ||
nodes.stats: | ||
metric: [ discovery ] | ||
human: true | ||
|
||
- gte: { nodes.$master.discovery.master_timing.unchanged.count: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.unchanged.computation_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.unchanged.notification_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.count: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.computation_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.publication_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.context_construction_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.commit_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.completion_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.master_apply_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.success.notification_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.count: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.computation_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.publication_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.context_construction_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.commit_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.completion_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.master_apply_time_millis: 0 } | ||
- gte: { nodes.$master.discovery.master_timing.failure.notification_time_millis: 0 } | ||
|
||
- is_true: nodes.$master.discovery.master_timing.unchanged.computation_time | ||
- is_true: nodes.$master.discovery.master_timing.unchanged.notification_time | ||
- is_true: nodes.$master.discovery.master_timing.success.computation_time | ||
- is_true: nodes.$master.discovery.master_timing.success.publication_time | ||
- is_true: nodes.$master.discovery.master_timing.success.context_construction_time | ||
- is_true: nodes.$master.discovery.master_timing.success.commit_time | ||
- is_true: nodes.$master.discovery.master_timing.success.completion_time | ||
- is_true: nodes.$master.discovery.master_timing.success.master_apply_time | ||
- is_true: nodes.$master.discovery.master_timing.success.notification_time | ||
- is_true: nodes.$master.discovery.master_timing.failure.computation_time | ||
- is_true: nodes.$master.discovery.master_timing.failure.publication_time | ||
- is_true: nodes.$master.discovery.master_timing.failure.context_construction_time | ||
- is_true: nodes.$master.discovery.master_timing.failure.commit_time | ||
- is_true: nodes.$master.discovery.master_timing.failure.completion_time | ||
- is_true: nodes.$master.discovery.master_timing.failure.master_apply_time | ||
- is_true: nodes.$master.discovery.master_timing.failure.notification_time |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Perhaps clarify that these are from publication start, i.e., IIUC includes
publication_time
?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.
sure, see bee970a.