Skip to content

[7.7] [UA] Tight worker loop can cause high CPU usage (#60950)#62001

Merged
jloleysens merged 1 commit intoelastic:7.7from
jloleysens:backport/7.7/pr-60950
Apr 1, 2020
Merged

[7.7] [UA] Tight worker loop can cause high CPU usage (#60950)#62001
jloleysens merged 1 commit intoelastic:7.7from
jloleysens:backport/7.7/pr-60950

Conversation

@jloleysens
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.7:

* Addded worker padding to save some CPU

* Updated comments

* Update worker scheduler and add a new util

The worker scheduler should only sleep when it cannot process any
in progress operations. Additionally, logic has been added
for handling of queue operations that have been in the queue for
a long time and may be viewed as still in small window of time
by wokers that do not have the credentials to process those
reindex operations.

* res 👉🏻resolve

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@jloleysens jloleysens added the backport This PR is a backport of another PR label Mar 31, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jloleysens jloleysens merged commit 8250204 into elastic:7.7 Apr 1, 2020
@jloleysens jloleysens deleted the backport/7.7/pr-60950 branch April 1, 2020 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants