Why the maxSession is both in hub config file and node config file

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Why the maxSession is both in hub config file and node config file

Summer Zhang
Why the maxSession  is both in hub config file and node config file, and in both the 2 files, the maxSession has the same meaning, so which one will control the number of tests at last.

 -maxSession        <Integer> max number of tests that can run at the same time on the node

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/689c4f30-d265-4c8a-ab96-7ee7d3384508%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Why the maxSession is both in hub config file and node config file

Krishnan Mahadevan
I believe that maxSession is an attribute that is applicable only to the hub.

Ideally speaking if this value is set at the Hub level, then it becomes applicable to all nodes. 
That is, if I set a maxSession as 10 at the hub and if the hub has 20 nodes wired to it, then every node essentially will support only 20 concurrent sessions at any given point in time.

The reason why its been exposed at the node level is to allow the users to override this for a particular node.

For e.g., you may have wired in an appium node that supports iOS automation from a Mac. You may have wired in only 1 device to the mac and so you would want to restrict only 1 test to be executed on that node alone. But for every other node, you may want the maxSession to be still 20. So only for Mac appium node, you can pass in a value of 1 as maxSession, and it would be affected only for that node.

I haven't tested this theory, so I dont know if it works that way. But in my understanding that would be the intent behind providing the same parameter at both the hub and the node level.


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, May 10, 2018 at 12:46 PM, Summer Zhang <[hidden email]> wrote:
Why the maxSession  is both in hub config file and node config file, and in both the 2 files, the maxSession has the same meaning, so which one will control the number of tests at last.

 -maxSession        <Integer> max number of tests that can run at the same time on the node

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/689c4f30-d265-4c8a-ab96-7ee7d3384508%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZL%3DdViihOC0_Z5rE1K8NHLpEw5%2BL4_zFPCwt3W%2BX%2BXt42w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Why the maxSession is both in hub config file and node config file

Summer Zhang
Got it, thanks, Krishnan Mahadevan.

在 2018年5月10日星期四 UTC+8下午3:22:51,Krishnan Mahadevan写道:
I believe that maxSession is an attribute that is applicable only to the hub.

Ideally speaking if this value is set at the Hub level, then it becomes applicable to all nodes. 
That is, if I set a maxSession as 10 at the hub and if the hub has 20 nodes wired to it, then every node essentially will support only 20 concurrent sessions at any given point in time.

The reason why its been exposed at the node level is to allow the users to override this for a particular node.

For e.g., you may have wired in an appium node that supports iOS automation from a Mac. You may have wired in only 1 device to the mac and so you would want to restrict only 1 test to be executed on that node alone. But for every other node, you may want the maxSession to be still 20. So only for Mac appium node, you can pass in a value of 1 as maxSession, and it would be affected only for that node.

I haven't tested this theory, so I dont know if it works that way. But in my understanding that would be the intent behind providing the same parameter at both the hub and the node level.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/
My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

On Thu, May 10, 2018 at 12:46 PM, Summer Zhang <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="XaubqqK2BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">amberq...@...> wrote:
Why the maxSession  is both in hub config file and node config file, and in both the 2 files, the maxSession has the same meaning, so which one will control the number of tests at last.

 -maxSession        <Integer> max number of tests that can run at the same time on the node

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="XaubqqK2BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="XaubqqK2BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/689c4f30-d265-4c8a-ab96-7ee7d3384508%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/689c4f30-d265-4c8a-ab96-7ee7d3384508%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/689c4f30-d265-4c8a-ab96-7ee7d3384508%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/689c4f30-d265-4c8a-ab96-7ee7d3384508%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/83278189-8302-4cd8-a35c-f285a0b22850%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.