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

Ensure that all scalers are closed #1416

Merged
merged 2 commits into from
Dec 14, 2020

Conversation

mboutet
Copy link
Contributor

@mboutet mboutet commented Dec 13, 2020

Signed-off-by: Maxence Boutet mboutet@explorance.com

In checkScaledObjectScalers, as soon as one active scaler is encountered, all the remaining scalers are not closed leading to ever increasing memory usage. This PR ensures that all the remaining scalers are closed after one active scaler has been found.

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO)
  • A PR is opened to update the documentation on https://github.com/kedacore/keda-docs (no doc to update)
  • Changelog has been updated

Fixes #1413

Signed-off-by: Maxence Boutet <mboutet@explorance.com>
Signed-off-by: Maxence Boutet <mboutet@explorance.com>
@mboutet mboutet marked this pull request as ready for review December 13, 2020 20:30
Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good catch @mboutet! Thanks a lot!

@zroubalik zroubalik merged commit 1543642 into kedacore:main Dec 14, 2020
ycabrer pushed a commit to ycabrer/keda that referenced this pull request Mar 1, 2021
* Ensure that all scalers are closed before breaking out the loop

Signed-off-by: Maxence Boutet <mboutet@explorance.com>

* Update changelog

Signed-off-by: Maxence Boutet <mboutet@explorance.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RabbitMQ connections are not closed when a cron trigger is active in the same ScaledObject
2 participants