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

[Telemetry] track event loop utilization #103477

Closed

Conversation

Bamieh
Copy link
Member

@Bamieh Bamieh commented Jun 28, 2021

Monitor event loop utilization

The eventLoopUtilization() method returns an object that contains the cumulative duration of time the event loop has been both idle and active as a high resolution milliseconds timer.

The utilization value is the calculated Event Loop Utilization (ELU).

ELU is similar to CPU utilization, except that it only measures event loop statistics and not CPU usage.

It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait). No other CPU idle time is taken into consideration. The following is an example of how a mostly idle process will have a high ELU.

In some cases the CPU is mostly idle while running this script but the event loop is haulted. For example child_process.spawnSync() blocks the event loop from proceeding while the CPU might be idle during that time.

How is this different from event loop delays

Event loop delays histogram tracks delays in the event loop. How long it takes for the event loop to flop a full cycle (check incoming requests, async functions/callbacks, timeouts, etc) to be able to jump to the next lines of code and handle more incoming requests.

So while tracking delays is crticial to check that Kibana servers are running smoothly. Tracking ELU gives another insight about the level of utilization the kibana servers run at, we can also track increasing and decreasing trends across releases and enabled feature. It is also a window for us to check how important it is adopt using multi-processes if we have high ELU

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@Bamieh
Copy link
Member Author

Bamieh commented Mar 28, 2023

Closed by #153717

@Bamieh Bamieh closed this Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Telemetry release_note:skip Skip the PR/issue when compiling release notes v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants