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

[Metrics UI][R&D] Profile event loop delays for Metric Threshold alert using high cardinality data #120249

Closed
simianhacker opened this issue Dec 2, 2021 · 1 comment · Fixed by #121904
Assignees
Labels
Feature:Metrics UI Metrics UI feature R&D Research and development ticket (not meant to produce code, but to make a decision) Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services

Comments

@simianhacker
Copy link
Member

simianhacker commented Dec 2, 2021

We need to profile the Metric Threshold Alert with High Cardinality data and figure out where some of the bottlenecks are happening. There seems to be two problems with the high cardinality data:

  1. There is a large amount of time spent making round trips between ES and Kibana to collect all the data via composite aggregations.
  2. Processing all this data in-memory for the alert executor

We would like to test:

  1. The current impact on the event loop for 1000, 10K, 100K (cardinality)
  2. Reducing the impact by changing the approach from "gather all data then process" to "gather and process in chunks"
  3. Play around with adding process.nextTick() to the processing so we don't block the event loop when processing large amounts of data in Node.

Related Issues:

@simianhacker simianhacker self-assigned this Dec 2, 2021
@simianhacker simianhacker added Feature:Metrics UI Metrics UI feature Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Dec 2, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

@simianhacker simianhacker added the R&D Research and development ticket (not meant to produce code, but to make a decision) label Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Metrics UI Metrics UI feature R&D Research and development ticket (not meant to produce code, but to make a decision) Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Projects
None yet
2 participants