What happened?
When using a standalone grid, max-sessions is not honored if a --config file is provided. It does not work when setting it in the config file or on the command line. I can not set it to anything less or more than the number of CPUs, in this case 16.
It works fine when not using a --config file.
Using selenium-server-4.12.1.jar
How can we reproduce the issue?
config.toml file:
[node]
detect-drivers = false
override-max-sessions = true
max-sessions = 32
[[node.driver-configuration]]
display-name = "my browser"
stereotype = "{\"browserName\": \"chrome\", \"browserVersion\": \"108\", \"platformName\": \"Linux\"}"
webdriver-executable = '/path/to/selenium/chromedriver_108'
Command line:
java -jar selenium-server.jar standalone --port 4567 --config config.toml
Relevant log output
14:53:34.010 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
14:53:34.014 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
14:53:34.599 INFO [NodeOptions.getSessionFactories] - Detected 16 available processors
14:53:34.600 WARN [NodeOptions.getSessionFactories] - Overriding max recommended number of 16 concurrent sessions. Session stability and reliability might suffer!
14:53:34.600 WARN [NodeOptions.getSessionFactories] - One browser session is recommended per available processor. Safari is always limited to 1 session per host.
14:53:34.601 WARN [NodeOptions.getSessionFactories] - Overriding this value for Internet Explorer is not recommended. Issues related to parallel testing with Internet Explored won't be accepted.
14:53:34.601 WARN [NodeOptions.getSessionFactories] - Double check if enabling 'override-max-sessions' is really needed
14:53:34.601 WARN [NodeOptions.getSessionFactories] - Max sessions set to 32
14:53:34.631 INFO [NodeOptions.report] - Adding my browser for {"browserName": "chrome","browserVersion": "108","platformName": "linux","se:webDriverExecutable": "\u002fpath\u002fto\u002fselenium\u002fchromedriver_108"} 16 times
14:53:34.674 INFO [Node.<init>] - Binding additional locator mechanisms: relative
14:53:34.690 INFO [GridModel.setAvailability] - Switching Node d7f1d49b-33fa-48a5-bc07-18c0cda7f84f (uri: http://<my-ip>:4567) from DOWN to UP
14:53:34.690 INFO [LocalDistributor.add] - Added node d7f1d49b-33fa-48a5-bc07-18c0cda7f84f at http://10.47.36.71:4567. Health check every 120s
14:53:34.799 INFO [Standalone.execute] - Started Selenium Standalone 4.12.1 (revision 8e34639b11): http://<my-ip>:4567
Operating System
Ubuntu
Selenium version
java 4.12.1
What are the browser(s) and version(s) where you see this issue?
chrome 108
What are the browser driver(s) and version(s) where you see this issue?
chromedriver 108
Are you using Selenium Grid?
4.12.1
What happened?
When using a
standalonegrid,max-sessionsis not honored if a--config fileis provided. It does not work when setting it in the config file or on the command line. I can not set it to anything less or more than the number of CPUs, in this case 16.It works fine when not using a
--config file.Using
selenium-server-4.12.1.jarHow can we reproduce the issue?
config.toml file:
Command line:
java -jar selenium-server.jar standalone --port 4567 --config config.tomlRelevant log output
Operating System
Ubuntu
Selenium version
java 4.12.1
What are the browser(s) and version(s) where you see this issue?
chrome 108
What are the browser driver(s) and version(s) where you see this issue?
chromedriver 108
Are you using Selenium Grid?
4.12.1