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

fix: Selenium Grid scaler exposes sum of pending and ongoing sessions to KDEA #6368

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

VietND96
Copy link
Contributor

@VietND96 VietND96 commented Nov 26, 2024

Provide a description of what has been changed

As KEDA exposes a metric to the HPA Controller, KEDA has to expose the raw value of the queue including all the jobs in-progress and pending, because it's the HPA controller the one which will calculate the right value based on the metric type (Value or AverageValue).

Selenium Grid scaler exposes the the sum of the in-progress sessions plus the pending sessions (after counting nodeMaxSessions to KEDA.

Checklist

Fixes SeleniumHQ/docker-selenium#2464

Relates to #6331

@rickbrouwer
Copy link
Contributor

rickbrouwer commented Nov 26, 2024

I see you are using optional with a default value. I think if something has a default, optional does not need to be passed along. What do you think?

@VietND96
Copy link
Contributor Author

I am not aware on this. So, we can remove optional from all trigger params which has default value already?
If yes, I will proceed the clean up

@rickbrouwer
Copy link
Contributor

I am not aware on this. So, we can remove optional from all trigger params which has default value already? If yes, I will proceed the clean up

Yes, because if it doesn't exist the value is set with the default.
Reference:

if !exists && params.Default != "" {
exists = true
valFromConfig = params.Default
}

@VietND96
Copy link
Contributor Author

Thanks! I updated the same.

@VietND96 VietND96 changed the title fix: Condition of queueLength for Selenium Grid scaler will scale up fix: Selenium Grid scaler exposes sum of pending and ongoing requests to KDEA Dec 1, 2024
@VietND96 VietND96 changed the title fix: Selenium Grid scaler exposes sum of pending and ongoing requests to KDEA fix: Selenium Grid scaler exposes sum of pending and ongoing sessions to KDEA Dec 1, 2024
Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this awesome fix! ❤️

@JorTurFer
Copy link
Member

JorTurFer commented Dec 2, 2024

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

Signed-off-by: Viet Nguyen Duc <[email protected]>
@JorTurFer
Copy link
Member

JorTurFer commented Dec 2, 2024

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

@JorTurFer JorTurFer enabled auto-merge (squash) December 2, 2024 10:44
Copy link
Member

@wozniakjan wozniakjan left a comment

Choose a reason for hiding this comment

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

thank you!

@JorTurFer JorTurFer merged commit c43af59 into kedacore:main Dec 4, 2024
21 checks passed
ctccxxd pushed a commit to ctccxxd/keda that referenced this pull request Dec 10, 2024
@JorTurFer JorTurFer mentioned this pull request Dec 22, 2024
24 tasks
JorTurFer pushed a commit to JorTurFer/keda that referenced this pull request Dec 22, 2024
JorTurFer pushed a commit to JorTurFer/keda that referenced this pull request Dec 22, 2024
JorTurFer added a commit that referenced this pull request Dec 24, 2024
* fix: CVE-2024-45337 (#6422)

Signed-off-by: Jorge Turrado <[email protected]>

* :fix: ensure consistent JSON log format for automaxprocs (#6335)

* fix: ensure consistent JSON log format for automaxprocs

Signed-off-by: Omer Aplatony <[email protected]>

* moved to Unreleased

Signed-off-by: Omer Aplatony <[email protected]>

---------

Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Jorge Turrado <[email protected]>

* Upgrade to the latest new-relic-go v2 client (#6325)

Signed-off-by: Jorge Turrado <[email protected]>

* refactor: replace experimental `maps` and `slices` with stdlib (#6372)

Signed-off-by: Eng Zer Jun <[email protected]>
Signed-off-by: Jan Wozniak <[email protected]>
Co-authored-by: Jan Wozniak <[email protected]>
Signed-off-by: Jorge Turrado <[email protected]>

* fix: Selenium Grid scaler exposes sum of pending and ongoing sessions to KDEA (#6368)

Signed-off-by: Jorge Turrado <[email protected]>

* fix: scaledjobs stuck as not ready (#6329)

since code was missing for setting a scaledjob as ready it was stuck as unready if there ever was a problem

This is a fix for a regression in #5916

Signed-off-by: Mårten Svantesson <[email protected]>
Signed-off-by: Jorge Turrado <[email protected]>

* fix: Paused ScaledObject count is reported correctly after operator restart (#6322)

Signed-off-by: Jorge Turrado <[email protected]>

* update changelog

Signed-off-by: Jorge Turrado <[email protected]>

* Bump go and deps (#6434)

* Bump go and deps

Signed-off-by: Jorge Turrado <[email protected]>

* bump golang.org/x/net

Signed-off-by: Jorge Turrado <[email protected]>

* Add missing permissions to code-scaners

Signed-off-by: Jorge Turrado <[email protected]>

* update release tracker

Signed-off-by: Jorge Turrado <[email protected]>

* fix aws scaler

Signed-off-by: Jorge Turrado <[email protected]>

* Pass theregion

Signed-off-by: Jorge Turrado <[email protected]>

* Pass theregion

Signed-off-by: Jorge Turrado <[email protected]>

* fix aws tests

Signed-off-by: Jorge Turrado <[email protected]>

* fix aws tests

Signed-off-by: Jorge Turrado <[email protected]>

* Update AWS admission probes

Signed-off-by: Jorge Turrado <[email protected]>

---------

Signed-off-by: Jorge Turrado <[email protected]>
Signed-off-by: Jorge Turrado <[email protected]>

* commit last vendored deps

Signed-off-by: Jorge Turrado <[email protected]>

* fix: Selenium Grid in case multiple scaler triggers are activate (#6437)

* fix: Selenium Grid scaler avoids overlapping when multiple browserVersion triggers are active

Signed-off-by: Viet Nguyen Duc <[email protected]>

* Update CHANGELOG

Signed-off-by: Viet Nguyen Duc <[email protected]>

* Fix e2e template test

Signed-off-by: Viet Nguyen Duc <[email protected]>

* Change imagePullPolicy to Always to take latest change

Signed-off-by: Viet Nguyen Duc <[email protected]>

* Update platformName default value as empty

Signed-off-by: Viet Nguyen Duc <[email protected]>

---------

Signed-off-by: Viet Nguyen Duc <[email protected]>
Signed-off-by: Jorge Turrado <[email protected]>

* add missing change

Signed-off-by: Jorge Turrado <[email protected]>

---------

Signed-off-by: Jorge Turrado <[email protected]>
Signed-off-by: Omer Aplatony <[email protected]>
Signed-off-by: Eng Zer Jun <[email protected]>
Signed-off-by: Jan Wozniak <[email protected]>
Signed-off-by: Mårten Svantesson <[email protected]>
Signed-off-by: Jorge Turrado <[email protected]>
Signed-off-by: Viet Nguyen Duc <[email protected]>
Co-authored-by: Omer Aplatony <[email protected]>
Co-authored-by: smcavallo <[email protected]>
Co-authored-by: Eng Zer Jun <[email protected]>
Co-authored-by: Jan Wozniak <[email protected]>
Co-authored-by: Viet Nguyen Duc <[email protected]>
Co-authored-by: Mårten Svantesson <[email protected]>
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.

[🐛 Bug]: Issue with Scaling Already Scaled Deployments
4 participants