forked from SeleniumHQ/docker-selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Selenium Grid scaler in part of docker-selenium
Signed-off-by: Viet Nguyen Duc <[email protected]>
- Loading branch information
Showing
9 changed files
with
159 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Introduction | ||
|
||
Selenium Grid scaler is a built-in scaler is maintained in upstream KEDA [repository](https://github.com/kedacore/keda). The scaler impelementation could be found [here](https://github.com/kedacore/keda/blob/main/pkg/scalers/selenium_grid_scaler.go). The official docs of the scaler could be seen [here](https://keda.sh/docs/latest/scalers/selenium-grid-scaler/). | ||
|
||
Now, [SeleniumHQ/docker-selenium](https://github.com/SeleniumHQ/docker-selenium) involves as the maintainer for the scaler. | ||
|
||
In order to deliver and get feedback continuously on any new bug fixes, improvement, or features for the Selenium Grid scaler. We select the latest stable version of KEDA core, patch the scaler implementation then build and deploy KEDA container images following our image tag convention. | ||
|
||
The stable implementation will be merged to the upstream KEDA repository frequently and will be available in the next KEDA core release. | ||
|
||
# How to use the patched scaler | ||
|
||
Replace the image registry and tag of these KEDA components with the patched image tag: | ||
|
||
```bash | ||
docker pull selenium/keda:2.15.1-selenium-grid-20240907 | ||
docker pull selenium/keda-metrics-apiserver:2.15.1-selenium-grid-20240907 | ||
docker pull selenium/keda-admission-webhooks:2.15.1-selenium-grid-20240907 | ||
``` | ||
|
||
If you are deploying KEDA core using their official Helm chart, you can overwrite the image registry and tag by providing the following values in the `values.yaml` file. For example: | ||
|
||
```yaml | ||
image: | ||
keda: | ||
registry: selenium | ||
repository: keda | ||
tag: "2.15.1-selenium-grid-20240907" | ||
metricsApiServer: | ||
registry: selenium | ||
repository: keda-metrics-apiserver | ||
tag: "2.15.1-selenium-grid-20240907" | ||
webhooks: | ||
registry: selenium | ||
repository: keda-admission-webhooks | ||
tag: "2.15.1-selenium-grid-20240907" | ||
``` | ||
# Pull requests under testing | ||
Here is list of pull requests that are under testing and will be merged to the upstream KEDA repository. | ||
You can involve to review and discuss the pull requests to help us early detect and fix any issues. | ||
[kedacore/keda](https://github.com/kedacore/keda) | ||
- https://github.com/kedacore/keda/pull/6169 | ||
[kedacore/keda-docs](https://github.com/kedacore/keda-docs) | ||
- https://github.com/kedacore/keda-docs/pull/1468 | ||
# Resources | ||
You can inspect the implementation of current Selenium Grid scaler: | ||
- [selenium_grid_scaler.go](./scalers/selenium_grid_scaler.go) | ||
- [selenium_grid_scaler_test.go](./scalers/selenium_grid_scaler_test.go) | ||
- [selenium-grid-scaler.md](./scalers/selenium-grid-scaler.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.