forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[grid] Simplifying DefaultSlotSelector logic
The idea has always been to keep as available as possible the Nodes with diverse configurations. Such as the ones supporting different browsers, like a Node supporting Chrome, Firefox and Safari. But if we have a Node that only supports Chrome, we'd like to give as many Chrome sessions as possible to keep the one with Safari as available as possible, so when a Safari session request comes in, it can be served right away. The previous logic had that in mind, but the implementation was rather complex. This simplified version orders Nodes by the number of browsers they support. Therefore, it would offer "specialized" Nodes first (e.g. only supporting one browser), and the more diverse ones at the bottom.
- Loading branch information
Showing
3 changed files
with
130 additions
and
221 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
Oops, something went wrong.