Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't start another refresh worker while another is stopping #18583

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

agrare
Copy link
Member

@agrare agrare commented Mar 22, 2019

If a RefreshWorker is asked to stop (usually for exceeding memory) we
don't want to start another right away until the first has stopped.

This can lead to many refresh workers running at the same time since the
next worker that starts typically exceeds memory as well and will be
asked to shutdown also.

In addition to using a huge amount of memory
this can also lead to inventory integrity issues since it is possible
for multiple refresh workers to be running save_ems_inventory at once.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1769991

If a RefreshWorker is asked to stop (usually for exceeding memory) we
don't want to start another right away until the first has stopped.

This can lead to many refresh workers running at the same time since the
next worker that starts typically exceeds memory as well and will be
asked to shutdown also.

In addition to using a huge amount of memory
this can also lead to inventory integrity issues since it is possible
for multiple refresh workers to be running save_ems_inventory at once.
@miq-bot
Copy link
Member

miq-bot commented Mar 22, 2019

Checked commit agrare@1ab6883 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

@agrare
Copy link
Member Author

agrare commented Mar 24, 2019

cc @Fryguy @jrafanie

@Fryguy Fryguy merged commit a1ba070 into ManageIQ:master Mar 25, 2019
@Fryguy Fryguy added this to the Sprint 108 Ending Apr 1, 2019 milestone Mar 25, 2019
@agrare agrare deleted the dont_start_multiple_refresh_workers branch March 25, 2019 15:37
@ahrechushkin
Copy link

good job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants