docker-selenium
docker-selenium copied to clipboard
[🐛 Bug]: Dynamic Grid load not evenly distributed and test timeout before scaling to desired level of concurrency
What happened?
The grid is not distributing the load evenly when executing across nodes on different VMs. The scaling of the sessions is slow and does not increase to the assigned thread count (in this case thread-count was set to 300)

Command used to start Selenium Grid with Docker
Hub:
$ docker run -d -p 4442-4444:4442-4444 --name selenium-hub selenium/hub:4.2.1-20220531
Nodes 1-4:
$ docker run -d -p 5555:5555 \
-e SE_EVENT_BUS_HOST=<ip-from-machine> \
-e SE_EVENT_BUS_PUBLISH_PORT=4442 \
-e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
-v ${PWD}/config.toml:/opt/bin/config.toml \
-v ${PWD}/assets:/opt/selenium/assets \
--name docker-node selenium/node-docker:4.2.1-20220531
config.toml
[docker]
# Configs have a mapping between the Docker image to use and the capabilities that need to be matched to
# start a container with the given image.
configs = [
"selenium/standalone-firefox:4.2.1-20220531", "{\"browserName\": \"firefox\"}",
"selenium/standalone-chrome:4.2.1-20220531", "{\"browserName\": \"chrome\"}",
"selenium/standalone-edge:4.2.1-20220531", "{\"browserName\": \"MicrosoftEdge\"}"
]
# URL for connecting to the docker daemon
url = "http://172.17.0.1:2375"
# Docker image used for video recording
#video-image = "selenium/video:ffmpeg-4.3.1-20220531"
# Uncomment the following section if you are running the node on a separate VM
# Fill out the placeholders with appropriate values
[server]
host = <ip-from-node-machine>
port = <port-from-node-machine>
Relevant log output
https://pastebin.com/LifJ99kJ
Operating System
Ubuntu 20.04.3
Docker Selenium version (tag)
4.2.1-20220531