Log a warning for event loop delay > threshold #96192
Labels
enhancement
New value added to drive a business result
Feature:Logging
performance
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Nodejs is async by nature: it's been created to handle I/O operations quickly, not perform expensive computations.
Read more https://nodejs.org/en/docs/guides/dont-block-the-event-loop/
It means Kibana starts choking when it has to deal with an enormous amount of computations. That can lead to barely debuggable problems: users can observe occasional failures in different unrelated modules that cannot be explained sometimes.
To simplify the diagnosis of problems related to delays in the event loop Core could enhance the existing
metrics
service logging to notify users when the system is under heavy load. This way, the users can diagnose a problem and keep the whole system running, potentially by disabling some plugins or changing the parameters (e.g. reducing the task manager poll interval).Scope:
@watson can you provide any recommendations, maybe?
The text was updated successfully, but these errors were encountered: