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

Max queued targets threshold #16502

Closed
wants to merge 10 commits into from

Conversation

Ladas
Copy link
Contributor

@Ladas Ladas commented Nov 20, 2017

Add max_queued_targets_threshold, making sure we have a top limit
of max queued items. The current solution can have issues with
a lot of queued targets (big processing time and memory)

Also if the refresh worker goes down (consumer) we want to make sure
the producers will not be queueing targets indefinitelly. Cause in
that case, that would be causing the producers to rise in Memory
and procidessing time would be rising. So we would be forced to
delete the queue item with a lot of targets anyway.

Only last commit is relevant.

Depends on

agrare and others added 10 commits November 16, 2017 17:12
Tie MiqQueue to BinaryBlob
Fill resource id only to new targets, to avoid growing query.
Add max_queued_targets_threshold, making sure we have a top limit
of max queued items. The current solution can have issues with
a lot of queued targets (big processing time and memory)

Also if the refresh worker goes down (consumer) we want to make sure
the producers will not be queueing targets indefinitelly. Cause in
that case, that would be causing the producers to rise in Memory
and procidessing time would be rising. So we would be forced to
delete the queue item with a lot of targets anyway.
@Ladas
Copy link
Contributor Author

Ladas commented Nov 20, 2017

@miq-bot assign @agrare
@miq-bot add_label bug, performance

@miq-bot
Copy link
Member

miq-bot commented Nov 20, 2017

Checked commits Ladas/manageiq@f7ce67b~...762b454 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
12 files checked, 13 offenses detected

**

  • 💣 💥 🔥 🚒 - Linter/Yaml - missing config files

app/models/ems_refresh.rb

spec/models/ems_refresh_spec.rb

spec/models/manager_refresh/target_spec.rb

@miq-bot
Copy link
Member

miq-bot commented Nov 27, 2017

This pull request is not mergeable. Please rebase and repush.

@agrare
Copy link
Member

agrare commented Jan 18, 2018

Believe this was superseded by #16432

@agrare agrare closed this Jan 18, 2018
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.

3 participants