What is Selenium Distributor?
What is Selenium Distributor?
In this tutorial, we will learn about Selenium Distributor. Distributor is new feature in Selenium 4 Grid architecture.
Selenium Distributor
This component is responsible and decides on which selenium node the session should run. The component periodically checks for free capabilities on the worker nodes, if available it request the Session Queue for the matching request obeying the FIFO order.
https://www.testingdocs.com/questions/what-is-selenium-session-queue/
The distributor creates a session. It then stores the session id and the selenium Node capabilities in the Session Map data store.
https://www.testingdocs.com/questions/what-is-selenium-sessionmap/
How to start?
Launch command prompt/Terminal
Run the following command
\> java -jar <selenium-4-server.jar> distributor –sessions <url> –sessionqueue <queueURL> –bind-bus false
In the above command we are not binding the Event bus. So make sure that the Event bus is up and running.
The component supports many command line options. To know more about the switches, run the following command
\> java -jar <selenium-4-server.jar> distributor –help