Selenium Grid: How to register multiple nodes to grid hub?

97 views
Skip to first unread message

mycheap...@gmail.com

unread,
Apr 24, 2023, 9:32:15 PM4/24/23
to Selenium Users
Hello,

I am going thru this guide here

I like to register multiple nodes to the hub. To do that, I opened 3 command prompts:

One for the hub and the other two to register two nodes to the hub. 

First command prompt:
java -jar selenium-server-<version>.jar hub
Copy

Second command prompt:
java -jar selenium-server-<version>.jar node --port 5555
Copy
Third command prompt:
java -jar selenium-server-<version>.jar node --port 6666
Copy

Now I have 3 command prompts window running. That means if I want to register more nodes, I have to open more command prompts. 

When I register docker nodes to docker hub, I just run the docker-compose.yml file which register all the nodes. I am not allowed to use docker so I have to use selenium grid hub. My goal is to add 50+ nodes to selenium grid hub. What would be the best way to register the nodes to the grid hub without opening one command prompt for each node?

Thank you in advance!

 

⇜Krishnan Mahadevan⇝

unread,
Apr 24, 2023, 11:01:56 PM4/24/23
to seleniu...@googlegroups.com
Your machine (the one that runs the hub and wherein you are spawning all these nodes) is perhaps going to choke at some point, because its not going to be able to handle 50 nodes (which means that at any given point in time, you would end up opening 50 concurrent browsers)

You should be using different machines to setup the hub and nodes.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5a5dc17f-c058-4ce6-8134-f7fb80208379n%40googlegroups.com.

mycheap...@gmail.com

unread,
Apr 25, 2023, 1:03:58 PM4/25/23
to Selenium Users
Thank you!

Can you please let me know how to create two nodes with one command rather than opening command prompts twice one for each node? Is there a script similar to docker-compose.yml file I can create so I can just create two grid nodes in one go?

⇜Krishnan Mahadevan⇝

unread,
Apr 25, 2023, 10:23:03 PM4/25/23
to seleniu...@googlegroups.com
You would need to just add the commands to start two nodes into a shell script and that should suffice.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/

mycheap...@gmail.com

unread,
Apr 26, 2023, 9:37:14 PM4/26/23
to Selenium Users
Thank you!
Reply all
Reply to author
Forward
0 new messages