[KEDA] Selenium Grid: Add trigger param overProvisionRatio
for ability to scale more than queue request
#2907
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
Thanks for contributing to the Docker-Selenium project!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Feature preview of kedacore/keda#6920
Add trigger param
overProvisionRatio
(float64) to add the ability to scale more than the queue request (called over-provisioned). Since this comes from a request #3453, plus 3 votes. Moreover, I believe this helps in autoscaling Deployment, scale Nodes based on request queue with a buffer (warm standby Nodes are available for a while, since process of a Node container from start up, get ready, registered to Hub, and pick up session would take time, a buffer for peak loads period would be an approach that users are prefer).overProvisionRatio
is set to0.2
(representing 20% percentage more than base request)Motivation and Context
Types of changes
Checklist
PR Type
Enhancement
Description
Add
overProvisionRatio
parameter to Selenium Grid KEDA scalerEnable scaling beyond queue request count for better resource provisioning
Update metadata structure with float64 types for scaling parameters
Update KEDA image tags to latest version (20250721)
Diagram Walkthrough
File Walkthrough
selenium_grid_scaler.go
Add over-provision ratio scaling logic
.keda/scalers/selenium_grid_scaler.go
OverProvisionRatio
field to metadata structTargetValue
andActivationThreshold
from int64 to float64getScaledCount()
function to apply over-provision ratioselenium_grid_scaler_test.go
Update tests for over-provision ratio
.keda/scalers/selenium_grid_scaler_test.go
overProvisionRatio
parameter to test argumentsTargetValue
from expected metadataREADME.md
Update KEDA image tags and documentation
.keda/README.md
CONFIGURATION.md
Add KEDA image configuration documentation
charts/selenium-grid/CONFIGURATION.md
keda.image
configuration objectMakefile
Update KEDA build configuration
Makefile
KEDA_BASED_TAG
from 20250705 to 20250721TEST_PATCHED_KEDA
from false to truevalues.yaml
Update KEDA image defaults in Helm chart
charts/selenium-grid/values.yaml