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

feat: Provide support for scaling apps using AWS SQS Queue to include in-flight messages as well #3132

Merged
merged 9 commits into from
Jun 17, 2022

Conversation

LiamStorkey
Copy link
Contributor

@LiamStorkey LiamStorkey commented Jun 7, 2022

Signed-off-by: Liam Storkey liam.storkey@ip-10-0-0-12.ap-southeast-2.compute.internal

  • Added in a config option scaleOnInFlight which changes the formula used for the sqs queue scaling metrics
  • default is set to true and the fomula is set to the as currently used.
  • added in 2 new test cases
For the purposes of scaling, the default formula for "actual messages" is equal to `ApproximateNumberOfMessages` + `ApproximateNumberOfMessagesNotVislble`, since `NotVisible` in SQS terms means the message is still in-flight/processing. If you wish to only scale on `ApproximateNumberOfMessages` set `scaleOnInFlight` to `false`.
- `scaleOnInFlight` - Bool flag to set the metrics to scale on. When set to `false` "actual messages" is equal to `ApproximateNumberOfMessages`. When set to `true` "actual messages" is equal to `ApproximateNumberOfMessages` + `ApproximateNumberOfMessagesNotVislble`, since `NotVisible` in SQS terms means the message is still in-flight/processing. (default: true)

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • Tests have been added
  • A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
  • A PR is opened to update the documentation on (repo) (PR)
  • Changelog has been updated and is aligned with our changelog requirements

Relates to kedacore/keda-docs#773
Fixes #3133

Liam Storkey added 3 commits June 7, 2022 12:50
Signed-off-by: Liam Storkey <liam.storkey@ip-10-0-0-12.ap-southeast-2.compute.internal>
Signed-off-by: Liam Storkey <liam.storkey@ip-10-0-0-12.ap-southeast-2.compute.internal>
Signed-off-by: Liam Storkey <liam.storkey@ip-10-0-0-12.ap-southeast-2.compute.internal>
Liam Storkey added 2 commits June 7, 2022 13:12
Signed-off-by: Liam Storkey <liam.storkey@ip-10-0-0-12.ap-southeast-2.compute.internal>
Signed-off-by: Liam Storkey <liam.storkey@ip-10-0-0-12.ap-southeast-2.compute.internal>
@tomkerkhove tomkerkhove changed the title New config for aws sqs queue scaler feat: Provide support for scaling apps using AWS SQS Queue to include in-flight messages as well Jun 7, 2022
Liam Storkey added 3 commits June 16, 2022 10:45
Signed-off-by: Liam Storkey <liam.storkey@SYD-C02FN3JPMD6R.local>
Signed-off-by: Liam Storkey <liam.storkey@SYD-C02FN3JPMD6R.local>
Signed-off-by: Liam Storkey <liam.storkey@SYD-C02FN3JPMD6R.local>
@LiamStorkey
Copy link
Contributor Author

LiamStorkey commented Jun 16, 2022

hey @tomkerkhove
I have gotten all the test to pass (I'm trying to run e2e sooo fingers cossed that runs but i think I the bot checks if im a "team-member" - see above comment with slash command)

It would be amazing if we could get some eyes on this 👍🏻
Thanks

@LiamStorkey
Copy link
Contributor Author

/run-e2e

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@zroubalik
Copy link
Member

zroubalik commented Jun 16, 2022

/run-e2e aws*
Update: You can check the progress here

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

Signed-off-by: Liam Storkey <liam.storkey@syd-c02fn3jpmd6r.lan>
@tomkerkhove
Copy link
Member

@JorTurFer Do you know what's up with this GH check?

@JorTurFer
Copy link
Member

JorTurFer commented Jun 17, 2022

There is a new commit since e2e test was executed. Every commit enqueue the check again (like other CIs because there could be changes in the code that should be tested)
Just skip them

@tomkerkhove tomkerkhove merged commit 2b3fdc0 into kedacore:main Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide support for scaling apps using AWS SQS Queue to include in-flight messages as well
4 participants