[APM] Performance fix for 'cardinality' telemetry task#144061
Merged
basepi merged 3 commits intoelastic:mainfrom Oct 27, 2022
Merged
[APM] Performance fix for 'cardinality' telemetry task#144061basepi merged 3 commits intoelastic:mainfrom
basepi merged 3 commits intoelastic:mainfrom
Conversation
Contributor
|
Pinging @elastic/apm-ui (Team:APM) |
Contributor
Author
|
I also wonder if it would be worthwhile to make this |
sorenlouv
reviewed
Oct 27, 2022
| }); | ||
|
|
||
| const rumAgentCardinalityResponse = await search({ | ||
| index: [indices.transaction], |
Member
There was a problem hiding this comment.
We probably should make index required
Contributor
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
sorenlouv
approved these changes
Oct 27, 2022
Contributor
|
@basepi I think it's good to default to 24h in most cases, because e.g. a 1hr time range for rum data leads to very different results if the job runs at midnight. |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Oct 27, 2022
* Performance fix for 'cardinality' telemetry task * Make timeout/index required for telemetry searches * Fix tests Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co> (cherry picked from commit a5c8ebe)
Contributor
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
1 task
jloleysens
added a commit
to jloleysens/kibana
that referenced
this pull request
Oct 27, 2022
* main: (24 commits) [Files] Add file upload to file picker (elastic#143969) [Security solution] Guided onboarding, alerts & cases (elastic#143598) [APM] Critical path for a single trace (elastic#143735) skip failing test suite (elastic#143933) [Fleet] Update GH Projects automation (elastic#144123) [APM] Performance fix for 'cardinality' telemetry task (elastic#144061) [Enterprise Search] Attach ML Inference Pipeline - Pipeline re-use (elastic#143979) [8.5][DOCS] Add support for differential logs (elastic#143242) Bump nwsapi from v2.2.0 to v2.2.2 (elastic#144001) [APM] Add waterfall to dependency operations (elastic#143257) [Shared UX] Add deprecation message to kibana react Markdown (elastic#143766) [Security Solution][Endpoint] Adds RBAC API checks for Blocklist (elastic#144047) Improve `needs-team` auto labeling regex (elastic#143787) [Reporting/CSV Export] _id field can not be formatted (elastic#143807) Adds SavedObjectsWarning to analytics results pages. (elastic#144109) Bump chromedriver to 107 (elastic#144073) Update cypress (elastic#143755) [Maps] nest security layers in layer group (elastic#144055) [Lens][Agg based Heatmap] Navigate to Lens Agg based Heatmap. (elastic#143820) Added support of saved search (elastic#144095) ...
Contributor
|
Added |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Someone found an instance where this telemetry task took 29 hours. We should figure out why the
timeoutargument didn't stop that earlier in that instance, but I also noticed that we're not narrowing the indices at all on these queries. We now only search the traces indices which should (hopefully) improve the performance on this dramatically./cc @felixbarny @dgieselaar
For maintainers
Closes #143819.