How many threads to assign in selenium grid
<p>I am kind of confused while using Selenium Grid.
I have one hub and two nodes registered to it.
Node 1 - has 2 Chrome and 2 IE browsers maxInstance 2 each. MaxSession 4<br>
Node 2 - has 2 Chrome and 2 IE browsers  maxInstance 2 each. MaxSession 4 </p>

<p>In TestNG.xml I have mentioned 
parallel="tests" thread-count="4"</p>

<ol>
<li>So how exactly does this works? </li>
<li>Will it send/execute all classes mentioned in one test tag to one node? 
How many threads am I supposed to use here is it total number of browser instance so in my case it will be 8? </li>
<li>If I say parallel=classes, will it send/execute each class on each node?</li>
<li>What is the best way to improve performance? by parallel="methods"?</li>
</ol>

<p>Please help me.</p>