-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 Bug]: maxSessions config value larger then CPU count is ignored #2610
Comments
@Zlaman, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Ok, looks like the TOML config applies for the node-docker but doesn't apply for the browser node defined inside. |
Thanks, I tried starting selenium/node-docker with below command, but it still results in
|
This one let me check again. |
Thank you. I am using only one node, I guess as the |
With your requirement, I think just a standalone image is suitable for you.
No need to have node-docker layer. |
I need an ability to record videos from every session, not sure it is possible to use |
Currently, multiple sessions are opening the browsers on the same screen, and recording only listens on that screen. |
This is a duplicate of #1817 |
Thanks @VietND96 , that's why I am using Dynamic Grid. Thanks @diemol I see that #1817 is closed without resolution. I think that the situation I am facing is still a bug because it does not correspond to this documentation https://github.com/SeleniumHQ/docker-selenium?tab=readme-ov-file#increasing-session-concurrency-per-container |
What happened?
My VM has 4 CPU's. I am starting selenium/hub and selenium/node-docker with below commands.
config.toml
hasoverride-max-sessions = true
andmax-sessions = 10
As per the logs from selenium/node-docker (see them below) -
Max sessions set to 10
, but another line isMapping Capabilities {browserName: chrome, platformName: linux, se:downloadsEnabled: true} to docker image selenium/standalone-chrome:latest **4 times**
It results in "maxSessions": 4 while expected is 10 as per config.toml
curl localhost:4444/wd/hub/status
I have also tried to start selenium-node-docker with extra environment variables
-e SE_NODE_MAX_SESSIONS=10
-e SE_NODE_OVERRIDE_MAX_SESSIONS=true
but it does not help as well.
Command used to start Selenium Grid with Docker (or Kubernetes)
Relevant log output
Operating System
Ubuntu
Docker Selenium version (image tag)
selenium/hub:4.28.0-20250120 selenium/node-docker:4.28.0-20250120
Selenium Grid chart version (chart version)
No response
The text was updated successfully, but these errors were encountered: