update: handle graceful shutdown in Node container #2337
Merged
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
Share the
preStop
script in Helm chart to drain the Node before stopping the container can use when deployed via docker, docker compose.Env var to enable
SE_NODE_GRACEFUL_SHUTDOWN
istrue
Motivation and Context
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
entry_point.sh
.SE_OPT_BIN
for configuration directory.TEST_PARALLEL_COUNT
and updated test parallel autoscaling logic.TEST_DELAY_AFTER_TEST
default value to 0 in test scripts.tests
service indocker-compose-v3-test-parallel.yml
.Changes walkthrough 📝
12 files
entry_point.sh
Add graceful shutdown handling in entry point script
Base/entry_point.sh
NODE_CONFIG_DIRECTORY
variable.nodePreStop.sh
.distributorProbe.sh
Update distributor probe script configuration directory
charts/selenium-grid/configs/distributor/distributorProbe.sh
ROUTER_CONFIG_DIRECTORY
default value toSE_OPT_BIN
.nodeGridUrl.sh
Enhance node grid URL script with auth and defaults
charts/selenium-grid/configs/node/nodeGridUrl.sh
nodePreStop.sh
Update node pre-stop script configuration
charts/selenium-grid/configs/node/nodePreStop.sh
SE_NODE_PORT
variable.NODE_CONFIG_DIRECTORY
default value toSE_OPT_BIN
.nodeProbe.sh
Update node probe script configuration
charts/selenium-grid/configs/node/nodeProbe.sh
SE_NODE_PORT
variable.NODE_CONFIG_DIRECTORY
default value toSE_OPT_BIN
.routerProbe.sh
Update router probe script configuration directory
charts/selenium-grid/configs/router/routerProbe.sh
ROUTER_CONFIG_DIRECTORY
default value toSE_OPT_BIN
.Dockerfile
Update Dockerfile to include new scripts and environment variable
Base/Dockerfile
nodeGridUrl.sh
andnodePreStop.sh
to/opt/bin/
.SE_OPT_BIN
environment variable.Makefile
Update Makefile for nightly builds and test configurations
Makefile
selenium.conf
Update Selenium Node configuration for group kill
NodeBase/selenium.conf
killasgroup=true
to Selenium Node configuration.Dockerfile
Update Chromium installation source
NodeChromium/Dockerfile
supervisord.conf
Update video recording configuration for group kill
Video/supervisord.conf
stopasgroup
andkillasgroup
to video recording configuration.values.yaml
Update values.yaml for new script directory
charts/selenium-grid/values.yaml
/opt/bin
.3 files
chart_test.sh
Update test delay configuration in chart test script
tests/charts/make/chart_test.sh
TEST_DELAY_AFTER_TEST
default value to 0.__init__.py
Add parallel count configuration for tests
tests/SeleniumTests/init.py
TEST_PARALLEL_COUNT
environment variable.docker-compose-v3-test-parallel.yml
Update docker-compose for graceful shutdown and session drain
tests/docker-compose-v3-test-parallel.yml
tests
service.