-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
when sorting nodes for consideration, also take into account last tim…
…e accessed for a more even distribution across nodes over the lifetime of the grid. Also fix using the RemoteProxy's getResourceUsageInPercent instead of calculating it in the sort. Fixes #1673
- Loading branch information
Showing
5 changed files
with
104 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a74cfe8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good 👍
a74cfe8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
a74cfe8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @lukeis
a74cfe8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, a lot of this seems to be to support something which in my experience is an anti-pattern, which is running multiple browsers on a single node. We found this caused problems with sessions between multiple instances of the same browser, and since we like to record our sessions found that having one session per node (VM) was the best way to go (also when they become unstable to restart them with no affect on other tests running on the same node).
The Docker Selenium implementations seems to back up my experience--each container has a single browser. If you have a VM allocated with more resources, you run multiple instances of the Docker containers, but each is still its own node.
In this case using a Queue as I implemented is equivalent to this solution (and perhaps a lot easier to understand and maintain and computationally less active).
Does anyone run multiple browsers in a single Node? @freynaud what is your experience?
a74cfe8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use multiple (30ish) browsers per node. 1 browser per node is normally what happens with the default implementation. If you create a proxy specifically for your architecture, that 1 per node "rule" goes away.
a74cfe8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.