mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Remove task types that don't need concurrency limits (#144910)
In this PR, I'm removing the `maxConcurrency` from a few task types given they only have a single task created for each type. The concurrency setting limits how many tasks of such type a single Kibana process should handle at most, and internally requires a separate task claiming query to run every poll interval to claim those tasks. With this PR, task manager goes from running 4 update_by_query requests to 2 every 3 seconds, removing stress put onto Elasticsearch. For more details, see `maxConcurrency` here https://github.com/elastic/kibana/tree/main/x-pack/plugins/task_manager#task-definitions.
This commit is contained in:
parent
ae64c2cf3e
commit
773d696bec
2 changed files with 0 additions and 2 deletions
|
@ -41,7 +41,6 @@ export class SavedObjectsSyncService {
|
|||
description: "This task periodically syncs ML's saved objects",
|
||||
timeout: '1m',
|
||||
maxAttempts: 3,
|
||||
maxConcurrency: 1,
|
||||
|
||||
createTaskRunner: ({ taskInstance }: { taskInstance: ConcreteTaskInstance }) => {
|
||||
return {
|
||||
|
|
|
@ -152,7 +152,6 @@ export class SyntheticsService {
|
|||
description: 'This task periodically pushes saved monitors to Synthetics Service.',
|
||||
timeout: '1m',
|
||||
maxAttempts: 3,
|
||||
maxConcurrency: 1,
|
||||
|
||||
createTaskRunner: ({ taskInstance }: { taskInstance: ConcreteTaskInstance }) => {
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue