I have set up Selenium Grid 2 with one hub (on a high spec Dell 7910 Server , Windows) and 8 nodes (on VM's all are on Windows) and my test framework is on cucumber-jvm using Junit. I use Jenkins to kick of tests and build the project using maven..
Here is the example:
I have a 20 independent Maven Project jobs (Maven+Project+Plugin) in Jenkins and first 10 jobs are added to multiproject job A (Multijob+Plugin) and another 10 jobs to multiproject job B.
When I run the Job A the build is compiled successfully and the tests are routed to Hub and then in my observation I see that the tests are executed serially (if I'm correct ?)
When I see the Hub console the hub is detecting all 8 nodes as available but it only creates 2 session where the first Test is passed to Node 1 and second Test passed to Node 2 and the rest of the nodes (3-8) remain idle until the first two tests are completed or if any test is failed then the hub creates the new session to third node and the 3 test executes on Node3 and so on... this process continues until it executes the 8th Test on Node 8 after this is process is done hub executes the 9 test on node which is available which is obvious Node1 most of the cases.
According to my requirement, I want the hub to create 8 sessions and pass the requests to all 8 nodes at once so that my first 8 tests should execute on 8 different machines once they are completed then the next available node to execute the 9th test and so on.... And all my tests are browser specific they should be executed in IE only.
Hub and Nodes Configurations :
Hub:
cd c:\selenium-server java -jar selenium-server-standalone-2.45.0.jar -role hub -timeout 600 -browserTimeout 600 http://xx:xx:xx:xx/grid/register -port 4444
Node 1:
cd c:\selenium-server
java -jar selenium-server-standalone-2.45.0.jar -trustAllSSLCertificates -browser browserName="internet explorer",version=11,platform=WINDOWS,maxInstances=1 -Dwebdriver.ie.driver=c:\IEDriver\InternetExplorerDriver.exe -role node -hub http://pc-582v762:4444/grid/register -port 5555 -maxSession 1
Node 2,Node 3, Node 4 ...............Node 8 and the same node commands to the rest of the nodes
Note: I have replaced - role with 'webDriver' still the result is same and all the Virtual environment are Win7 and Win8 combinations
Hope I'm very clear with my question. Sorry for the mass info and I just want to be detail.