mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
Resolves https://github.com/elastic/kibana/issues/151457. In this PR, I'm deprecating ephemeral tasks and their related settings. The following settings have been deprecated with proper warning messages: - `xpack.task_manager.ephemeral_tasks.enabled` - `xpack.task_manager.ephemeral_tasks.request_capacity` - `xpack.alerting.maxEphemeralActionsPerAlert` ## To verify 1. Set the following in your `kibana.yml` ``` xpack.task_manager.ephemeral_tasks.enabled: true xpack.task_manager.ephemeral_tasks.request_capacity: 10 xpack.alerting.maxEphemeralActionsPerAlert: 10 ``` 2. Start up Kibana 3. Notice the deprecation warnings about these settings appear in the logs 4. Remove settings from step 1 ## Sample warning logs ``` [2023-04-18T09:45:36.731-04:00][WARN ][config.deprecation] Configuring "xpack.alerting.maxEphemeralActionsPerAlert" is deprecated and will be removed in a future version. Remove this setting to increase action execution resiliency. [2023-04-18T09:45:36.732-04:00][WARN ][config.deprecation] Configuring "xpack.task_manager.ephemeral_tasks.enabled" is deprecated and will be removed in a future version. Remove this setting to increase task execution resiliency. [2023-04-18T09:45:36.732-04:00][WARN ][config.deprecation] Configuring "xpack.task_manager.ephemeral_tasks.request_capacity" is deprecated and will be removed in a future version. Remove this setting to increase task execution resiliency. ``` ### Release notes The following settings have been deprecated. Remove them to increase task execution resiliency. - `xpack.task_manager.ephemeral_tasks.enabled` - `xpack.task_manager.ephemeral_tasks.request_capacity` - `xpack.alerting.maxEphemeralActionsPerAlert` --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: lcawl <lcawley@elastic.co>
74 lines
3.6 KiB
Text
74 lines
3.6 KiB
Text
[role="xpack"]
|
|
[[task-manager-settings-kb]]
|
|
=== Task Manager settings in {kib}
|
|
++++
|
|
<titleabbrev>Task Manager settings</titleabbrev>
|
|
++++
|
|
|
|
Task Manager runs background tasks by polling for work on an interval. You can configure its behavior to tune for performance and throughput.
|
|
|
|
[float]
|
|
[[task-manager-settings]]
|
|
==== Task Manager settings
|
|
|
|
|
|
|
|
`xpack.task_manager.max_attempts`::
|
|
The maximum number of times a task will be attempted before being abandoned as failed. Defaults to 3.
|
|
|
|
`xpack.task_manager.poll_interval`::
|
|
How often, in milliseconds, the task manager will look for more work. Defaults to 3000 and cannot be lower than 100.
|
|
|
|
`xpack.task_manager.request_capacity`::
|
|
How many requests can Task Manager buffer before it rejects new requests. Defaults to 1000.
|
|
|
|
`xpack.task_manager.max_workers`::
|
|
The maximum number of tasks that this Kibana instance will run simultaneously. Defaults to 10.
|
|
Starting in 8.0, it will not be possible to set the value greater than 100.
|
|
|
|
`xpack.task_manager.monitored_stats_health_verbose_log.enabled`::
|
|
This flag will enable automatic warn and error logging if task manager self detects a performance issue, such as the time between when a task is scheduled to execute and when it actually executes. Defaults to false.
|
|
|
|
`xpack.task_manager.monitored_stats_health_verbose_log.warn_delayed_task_start_in_seconds`::
|
|
The amount of seconds we allow a task to delay before printing a warning server log. Defaults to 60.
|
|
|
|
`xpack.task_manager.ephemeral_tasks.enabled`::
|
|
deprecated:[8.8.0]
|
|
Enables a technical preview feature that executes a limited (and configurable) number of actions in the same task as the alert which triggered them.
|
|
These action tasks will reduce the latency of the time it takes an action to run after it's triggered, but are not persisted as SavedObjects.
|
|
These non-persisted action tasks have a risk that they won't be run at all if the Kibana instance running them exits unexpectedly. Defaults to false.
|
|
|
|
`xpack.task_manager.ephemeral_tasks.request_capacity`::
|
|
deprecated:[8.8.0]
|
|
Sets the size of the ephemeral queue defined above. Defaults to 10.
|
|
|
|
`xpack.task_manager.event_loop_delay.monitor`::
|
|
Enables event loop delay monitoring, which will log a warning when a task causes an event loop delay which exceeds the `warn_threshold` setting. Defaults to true.
|
|
|
|
`xpack.task_manager.event_loop_delay.warn_threshold`::
|
|
Sets the amount of event loop delay during a task execution which will cause a warning to be logged. Defaults to 5000 milliseconds (5 seconds).
|
|
|
|
[float]
|
|
[[task-manager-health-settings]]
|
|
==== Task Manager Health settings
|
|
|
|
Settings that configure the <<task-manager-health-monitoring>> endpoint.
|
|
|
|
`xpack.task_manager.monitored_task_execution_thresholds`::
|
|
Configures the threshold of failed task executions at which point the `warn` or
|
|
`error` health status is set under each task type execution status
|
|
(under `stats.runtime.value.execution.result_frequency_percent_as_number[${task type}].status`).
|
|
+
|
|
This setting allows configuration of both the default level and a
|
|
custom task type specific level. By default, this setting is configured to mark
|
|
the health of every task type as `warning` when it exceeds 80% failed executions,
|
|
and as `error` at 90%.
|
|
+
|
|
Custom configurations allow you to reduce this threshold to catch failures sooner
|
|
for task types that you might consider critical, such as alerting tasks.
|
|
+
|
|
This value can be set to any number between 0 to 100, and a threshold is hit
|
|
when the value *exceeds* this number. This means that you can avoid setting the
|
|
status to `error` by setting the threshold at 100, or hit `error` the moment
|
|
any task fails by setting the threshold to 0 (as it will exceed 0 once a
|
|
single failure occurs).
|