kibana/docs/settings
Patrick Mueller b028cf97ed
[ResponseOps][task manager] log event loop delay for tasks when over configured limit (#126300)
resolves https://github.com/elastic/kibana/issues/124366

Adds new task manager configuration keys.

- `xpack.task_manager.event_loop_delay.monitor` - whether to monitor
  event loop delay or not; added in case this specific monitoring
  causes other issues and we'd want to disable it.  We don't know
  of any cases where we'd need this today

- `xpack.task_manager.event_loop_delay.warn_threshold` - the number
  of milliseconds of event loop delay before logging a warning

This code uses the `perf_hooks.monitorEventLoopDelay()` API[1] to collect
the event loop delay while a task is running.

[1] https://nodejs.org/api/perf_hooks.html#perf_hooksmonitoreventloopdelayoptions

When a significant event loop delay is encountered, it's very likely
that other tasks running at the same time will be affected, and so
will also end up having a long event loop delay value, and warnings
will be logged on those.  Over time, though, tasks which have consistently
long event loop delays will outnumber those unfortunate peer tasks, and
be obvious from the volume in the logs.

To make it a bit easier to find these when viewing Kibana logs in Discover,
tags are added to the logged messages to make it easier to find them.  One
tag is `event-loop-blocked`, second is the task type, and the third is a string 
consisting of the task type and task id.
2022-03-23 10:28:43 -04:00
..
images [docs][APM] Add runtime index config documentation (#53907) 2020-01-08 16:44:56 -08:00
alert-action-settings.asciidoc [Alerting] Warn by default when rule schedule interval is set below the minimum configured. (#127498) 2022-03-21 18:55:30 -04:00
apm-settings.asciidoc sync docs with new defaults for apm searchAggregatedTransactions setting (#125165) 2022-02-10 08:57:33 -05:00
banners-settings.asciidoc [DOCS] Reformats the AleBanner settings tables into definition lists (#107966) 2021-08-20 10:03:51 -05:00
enterprise-search-settings.asciidoc [DOCS] Add settings for Enterprise Search (#126711) 2022-03-02 12:58:15 -08:00
fleet-settings.asciidoc [Fleet] Update preconfiguration is_managed typo (#127909) 2022-03-17 10:45:16 +01:00
general-infra-logs-ui-settings.asciidoc [Metrics UI] Optimizations for Inventory Threshold Alerts (#122460) 2022-01-24 16:35:22 -07:00
i18n-settings.asciidoc [i18n] a few docs updates (#127964) 2022-03-17 18:18:49 +02:00
infrastructure-ui-settings.asciidoc [DOCS] Edits titles in Setup section for consistency (#68451) 2020-06-08 14:46:26 -07:00
logging-settings.asciidoc Docs/kibana logging links (#119680) 2021-11-29 11:17:15 -05:00
logs-ui-settings.asciidoc [DOCS] Edits titles in Setup section for consistency (#68451) 2020-06-08 14:46:26 -07:00
monitoring-settings.asciidoc [Stack Monitoring] add back monitoring.ui.metricbeat.index and deprecate (#127462) 2022-03-15 10:43:30 -04:00
reporting-settings.asciidoc [Reporting] Document load delay unused (#125629) 2022-02-22 09:48:00 +01:00
search-sessions-settings.asciidoc [DOCS] Reformats the Search sessions settings tables into definition lists (#114145) 2021-10-12 11:08:02 -05:00
security-settings.asciidoc [DOCS] Reformats the Security settings tables into definition lists (#123965) 2022-02-09 14:52:39 -06:00
settings-xkb.asciidoc [Breaking] Remove deprecated enabled settings from plugins. (#113495) 2021-10-17 16:54:30 +01:00
spaces-settings.asciidoc update monitoring.allowedSpaces documentation (#120362) 2021-12-07 12:04:07 +01:00
task-manager-settings.asciidoc [ResponseOps][task manager] log event loop delay for tasks when over configured limit (#126300) 2022-03-23 10:28:43 -04:00
telemetry-settings.asciidoc [DOCS] Reformats the telemetry settings tables into defintion lists (#120855) 2021-12-09 08:00:01 -08:00
url-drilldown-settings.asciidoc [DOCS] Reformats settings in drilldown doc (#120299) 2021-12-06 11:52:40 -08:00