Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Switches UpdateManagedIndexMetaData to batch tasks using custom executor #209

Merged
merged 2 commits into from
Apr 29, 2020

Conversation

dbbaughe
Copy link
Contributor

Issue #, if available:

Description of changes:
The task updating the cluster state for ISM were being executed and applied individually. This moves us to our own executor that will batch the tasks (of ISM type) together so they can be processed faster.

From testing this has made significant improvements in the timeouts experienced on clusters with large # of managed indices.

Tested on two domains with 10 data nodes (m4.xlarge), 3 dedicated masters (m4.large) with 5,000 Managed Indices each.

The current ISM would not be able to initialize all managed indices and would take hours to get through the queue while eventually timing out 3.5k of them until it was able to manage 1.5k without timeouts.

ISM with these changes was able to process all 5k managed indices right away and was able bring down pending_tasks queue to comparably low # with no timeouts. Was able to stress test further by reducing job_interval to 1 minute (5k jobs running per minute, ~10k cluster state updates per minute) and this has been running with no failures/timeouts overnight. Not recommending to reduce to 1 minute though until other improvements, but it's good to see impact.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dbbaughe dbbaughe merged commit 459b4c9 into opendistro-for-elasticsearch:master Apr 29, 2020
dbbaughe added a commit to dbbaughe/index-management that referenced this pull request Apr 30, 2020
…tor (opendistro-for-elasticsearch#209)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit to dbbaughe/index-management that referenced this pull request Apr 30, 2020
…tor (opendistro-for-elasticsearch#209)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit to dbbaughe/index-management that referenced this pull request Apr 30, 2020
…tor (opendistro-for-elasticsearch#209)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit to dbbaughe/index-management that referenced this pull request Apr 30, 2020
…tor (opendistro-for-elasticsearch#209)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit to dbbaughe/index-management that referenced this pull request Apr 30, 2020
…tor (opendistro-for-elasticsearch#209)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit to dbbaughe/index-management that referenced this pull request Apr 30, 2020
…tor (opendistro-for-elasticsearch#209)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit to dbbaughe/index-management that referenced this pull request Apr 30, 2020
…tor (opendistro-for-elasticsearch#209)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit that referenced this pull request May 1, 2020
…tor (#209) (#215)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit that referenced this pull request May 1, 2020
…tor (#209) (#214)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit that referenced this pull request May 1, 2020
…tor (#209) (#213)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit that referenced this pull request May 1, 2020
…tor (#209) (#212)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit that referenced this pull request May 1, 2020
…tor (#209) (#211)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit that referenced this pull request May 1, 2020
…tor (#209) (#210)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
dbbaughe added a commit that referenced this pull request May 11, 2020
…tor (#209) (#216)

* Switches UpdateManagedIndexMetaData to batch tasks using custom executor

* Removes unneeded type
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants