Skip to content

Refactor Selenium Grid scaler#6169

Merged
JorTurFer merged 7 commits intokedacore:mainfrom
NDViet:main
Nov 3, 2024
Merged

Refactor Selenium Grid scaler#6169
JorTurFer merged 7 commits intokedacore:mainfrom
NDViet:main

Conversation

@VietND96
Copy link
Contributor

@VietND96 VietND96 commented Sep 17, 2024

Provide a description of what has been changed

  1. Selenium Grid Scaler: Improve logic based on node stereotypes, node sessions and queue requests capabilities (#6080)
  • Enhanced KEDA scaler behavior, addressing:
    • Node with different platformName scaling: Fixed incorrect scaling behavior when both Linux and Windows node stereotypes are present (#1925).
    • Excessive autoscaling: Resolved over-scaling of browser nodes (#2160).
  1. Added one more parameter nodeMaxSessions (default is 1), to configure the scaler to be aligned with option --max-sessions (env var SE_NODE_MAX_SESSIONS) in the Node. It helps the calculation be better.
  2. Selenium Grid Scaler: Support for Username and Password Authentication of Grid GraphQL endpoint (#6144)
  3. Update all unit tests accordingly to the new GraphQL response.

Checklist

Fixes #6144 Fixes #6080

Relates to SeleniumHQ/docker-selenium#2160, SeleniumHQ/docker-selenium#1925, #6047

@SpiritZhou
Copy link
Contributor

SpiritZhou commented Sep 18, 2024

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

@VietND96
Copy link
Contributor Author

VietND96 commented Oct 2, 2024

Noted that we also set up some e2e tests in the downstream repo https://github.com/SeleniumHQ/docker-selenium/tree/trunk/.keda for the evaluation and feedback from community

@zroubalik
Copy link
Member

zroubalik commented Oct 2, 2024

/run-e2e selenium
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, this is really great, thanks for the contribution!

@VietND96 VietND96 force-pushed the main branch 10 times, most recently from 4e46487 to 86e662c Compare October 7, 2024 03:17
@VietND96
Copy link
Contributor Author

VietND96 commented Oct 7, 2024

/run-e2e selenium

@VietND96
Copy link
Contributor Author

VietND96 commented Oct 9, 2024

@SpiritZhou, @zroubalik, could you please help trigger one more command for /run-e2e selenium ?

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
@JorTurFer JorTurFer mentioned this pull request Oct 16, 2024
1 task
@JorTurFer
Copy link
Member

JorTurFer commented Oct 16, 2024

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

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
@VietND96
Copy link
Contributor Author

@JorTurFer, UTs and e2e passed. I also updated docs aligned with this.

@JorTurFer
Copy link
Member

JorTurFer commented Oct 17, 2024

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

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
@VietND96
Copy link
Contributor Author

@JorTurFer, fixed conflicted from latest main branch

@zroubalik
Copy link
Member

zroubalik commented Oct 23, 2024

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

@zroubalik zroubalik enabled auto-merge (squash) October 23, 2024 19:51
@zroubalik zroubalik disabled auto-merge October 23, 2024 20:13
@JorTurFer
Copy link
Member

JorTurFer commented Nov 3, 2024

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

@JorTurFer JorTurFer mentioned this pull request Nov 3, 2024
28 tasks
@JorTurFer
Copy link
Member

Thanks a lot for your help and patience 🙇

@JorTurFer JorTurFer merged commit c1a1b3d into kedacore:main Nov 3, 2024
mpechner-akasa pushed a commit to nrichardson-akasa/keda that referenced this pull request Nov 29, 2024
* Refactor Selenium Grid scaler

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>

* Add unit tests from other PRs

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>

---------

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
Signed-off-by: michael pechner <mike.pechner@akasa.com>
chiragbhatia8 pushed a commit to chiragbhatia8/keda that referenced this pull request Jan 9, 2025
* Refactor Selenium Grid scaler

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>

* Add unit tests from other PRs

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>

---------

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
Signed-off-by: Chirag Bhatia <chiragbhatia8@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.

Support for Username and Password Authentication in Selenium Grid Scaler Allow to scale differently sized browser nodes on selenium-grid scaler

4 participants