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: Consider maxSessions in Selenium Grid Scaler #2774

Conversation

adborroto
Copy link
Contributor

@adborroto adborroto commented Mar 18, 2022

Signed-off-by: Alejandro Dominguez adborroto90@gmail.com

Consider grid maxSession to scale Selenium Grid. Since each node can handle a number of parallel sessions defined by maxSession then is not needed to scale for each pending session.

Example: if maxSession=5 each node can hold up to 5 concurrent sessions. Therefore, if there are 10 requests in the queue, only 2 nodes are necessary to fulfill the requirements. Currently, the Selenium Grid Scaler of KEDA will scale up to 10 nodes in this case, ignoring the maxSessions per node.

Documentation changes: PR

More info:

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) (if applicable)
  • Changelog has been updated and is aligned with our changelog requirements

Fixes #2618

Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
@adborroto adborroto marked this pull request as ready for review March 18, 2022 12:05
@adborroto adborroto requested a review from a team as a code owner March 18, 2022 12:05
@adborroto adborroto changed the title fix: consider maxSessions in Selenium Grid Scaler fix: Consider maxSessions in Selenium Grid Scaler Mar 18, 2022
@JorTurFer
Copy link
Member

JorTurFer commented Mar 18, 2022

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

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.

LGTM!
Only small nits inline.
Thanks a lot for this contribution!

CHANGELOG.md Show resolved Hide resolved
pkg/scalers/selenium_grid_scaler.go Show resolved Hide resolved
@JorTurFer
Copy link
Member

JorTurFer commented Mar 21, 2022

/run-e2e selenium*
Update: You can check the progres 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

@JorTurFer JorTurFer merged commit 6157a17 into kedacore:main Mar 22, 2022
RamCohen pushed a commit to RamCohen/keda that referenced this pull request Mar 23, 2022
Signed-off-by: Ram Cohen <ram.cohen@gmail.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.

Selenium Grid Scaler should consider "maxSession"
3 participants