Skip to content
New issue

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

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

Already on GitHub? # to your account

Provide Solace Queue Scaler #1945

Merged
merged 9 commits into from
Jul 14, 2021
Merged

Conversation

dennis-brinley
Copy link
Contributor

@dennis-brinley dennis-brinley commented Jul 9, 2021

Signed-off-by: Dennis Brinley dennis.brinley@solace.com
Includes solace_scaler Unit tests, end-to-end tests, and mod to handler
** I'm waiting for sign-off for the documentation. Will commit early next week.

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.

Checklist

Fixes #

Signed-off-by: Dennis Brinley <dennis.brinley@solace.com>
Includes solace_scaler Unit tests, end-to-end tests, and mod to handler

By making a contribution to this project, I certify that:

    (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

    (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

    (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

    (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
…nd comments

Applies to solace_scaler tests

Signed-off-by: Dennis Brinley <dennis.brinley@solace.com>

By making a contribution to this project, I certify that:

    (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

    (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

    (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

    (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
@zroubalik
Copy link
Member

Thanks, there are a couple of linting problems and some failing test, could you please fix that?

dennis-brinley and others added 4 commits July 12, 2021 11:23
Signed-off-by: Dennis Brinley <dennis.brinley@solace.com>

By making a contribution to this project, I certify that:

    (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

    (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

    (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

    (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
Signed-off-by: Dennis Brinley <dennis.brinley@solace.com>

By making a contribution to this project, I certify that:

    (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

    (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

    (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

    (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
Code cleanup, removed comments, unused meta fields

Signed-off-by: Dennis Brinley <dennis.brinley@solace.com>

By making a contribution to this project, I certify that:

    (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

    (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

    (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

    (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
@dennis-brinley
Copy link
Contributor Author

Corrected

@tomkerkhove tomkerkhove changed the title Commit changes for solace-queue scaler Provide Solace Queue Scaler Jul 13, 2021
@tomkerkhove tomkerkhove added this to the v2.4.0 milestone Jul 13, 2021
@tomkerkhove
Copy link
Member

Thank you for your contribution @dennis-brinley! I'll take a look at the docs asap!

scale-handler.go:
- Changed scaler ID to "solace-event-queue"
solace_scaler.go:
- changed metadata identifer prefixes from "msg" to "message" where applicable"
- added multiplier to messageSpoolUsageTarget (1024^2) so metadata values are expressed in MBytes
- updated some var names (camel case not followed after re-name)
solace_scaler_test.go
- Mods to reflect change in scaler code
solace-helpers.ts
- Mod to test procedure to allow message size to be specified for test publisher (test message spool usage)
- Mod to trigger/scaler name in scaledobject config
solace.tests.ts
- added tests to scale up/down based on message spool usage (kedacore#5 and kedacore#6)

(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.

Signed-off-by: Dennis Brinley <dennis.brinley@solace.com>
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.

Looking good, +100 for thorough test coverage.

Minor nit in metadata from env variables naming.

Updated var names for config metadata passed from env
Signed-off-by: Dennis Brinley <dennis.brinley@solace.com>

(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
@dennis-brinley dennis-brinley requested a review from zroubalik July 14, 2021 14:10
@ahmelsayed
Copy link
Contributor

A small merge conflict in CHANGELOG.md

@zroubalik zroubalik merged commit cb3e971 into kedacore:main Jul 14, 2021
@dennis-brinley dennis-brinley deleted the solace-scaler branch July 15, 2021 12:01
nilayasiktoprak pushed a commit to nilayasiktoprak/keda that referenced this pull request Oct 23, 2021
Signed-off-by: Dennis Brinley <dennis.brinley@solace.com>
Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com>
Signed-off-by: nilayasiktoprak <nilayasiktoprak@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants