Selenium node docker images NODE_MAX_SESSION and NODE_MAX_INSTANCES env variables Selenium node docker images NODE_MAX_SESSION and NODE_MAX_INSTANCES env variables selenium selenium

Selenium node docker images NODE_MAX_SESSION and NODE_MAX_INSTANCES env variables


As the official docs tell, we need both, if you plan sets the maximum amount of tests that can run at the same time in a node, so:

By default, each image will only allow one slot per container,...this can be configured via environment variables with the environment variable NODE_MAX_INSTANCES. Don't forget to combine this with the environment variable NODE_MAX_SESSION


NODE_MAX_INSTANCES

NODE_MAX_SESSION

Both needs to be configured for ex :

NODE_MAX_INSTANCES=6 NODE_MAX_SESSION=3runs a chrome node which can run 6 instances of chrome, and a max parallelization of 3

Hope that answers your question