--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e765124a-7066-41d7-98cb-c8c806cdca4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Spinning off multiple grids for multiple tests is kind of an overkill.Instead why not consider working with an on-demand grid kind of a setup, wherein the Hub remains as a single instance, but the nodes are spun off on an on-demand basis.I built a PoC for this : https://github.com/RationaleEmotions/just-askPlease see if that helps.
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 Scribbings @ http://rationaleemotions.wordpress.com/
On Thu, Oct 12, 2017 at 8:34 PM, Jessica Marshall <mcga...@gmail.com> wrote:
Background info: We are wanting to use docker as infrastructure for selenium grid. The idea is that each test execution will spin up a docker grid, execute tests, and then tear down grid. This would all be setup through Jenkins. However, some jobs will be running in parallel, so that the grids will be running in parallel. There is one linux host machine just for the docker containers, and a separate linux machine for Jenkins.Has any one had success in running multiple selenium docker grids in parallel on one host machine?It looks like the default/typical way is to have the hub bound to the host container IP address and use port 4444. However, if I want multiple grids running on one host, they cannot all use port 4444.Thoughts:1. assign multiple IPs to the linux host & assign one to each hub/grid running.2. Have each grid pick a random port to run on (bound to linux host IP)How to do either one programmatically seems rather difficult.I would appreciate any feedback/recommendations/shared experiencesThanks,Jessica
--
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 post to this group, send email to seleniu...@googlegroups.com.
$ docker run -d -p 4444:4444 --name selenium-hub_1 selenium/hub:3.6.0-bromine $ docker run -d --link selenium-hub_1:hub selenium/node-chrome:3.6.0-bromine $ docker run -d --link selenium-hub_1:hub selenium/node-firefox:3.6.0-bromine
$ docker run -d -p 7777:4444 --name selenium-hub_2 selenium/hub:3.6.0-bromine $ docker run -d --link selenium-hub_2:hub selenium/node-chrome:3.6.0-bromine $ docker run -d --link selenium-hub_2:hub selenium/node-firefox:3.6.0-bromine
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d698defe-accf-4eca-997c-42516ee6df3f%40googlegroups.com.
Diego,
>>>> I have a different opinion on this, I think spinning independent grids for test suites is not always an overkill, it might be a good solution for a given scenario. I guess what Jessica wants is to have an independent environment for each team running their tests.
Yes. But the hub merely plays the role of a matcher+router. It’s the nodes that are responsible for actually honoring the tests. So this requirement can very well be achieved by a single hub, which is capable of juggling between different environment needs in the form of containers. Running multiple hubs doesn’t add a lot of value, but it adds a bit of complexity because the tests have to now start figuring out what would be the Hub port number as well, so that the tests can be routed to the appropriate hub.
That was my rationale behind opining that spinning off multiple hubs was perhaps an overkill for this scenario.
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 Scribbings @ http://rationaleemotions.wordpress.com/
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e824b917-8632-494a-a7ed-4313445936f6%40googlegroups.com.