Skip to content

Conversation

adam-hampton-sp
Copy link

Modifies AwsVmManager in the following ways:

  • CHROME_THREAD_COUNT becomes non-final.
  • FIREFOX_IE_THREAD_COUNT becomes non final.

New values are applied at runtime if the awsProperties contain keys
like:

  • node_max_processes_chrome=8
  • node_max_processes_firefox=1

Modifies AwsVmManager in the following ways:
 - CHROME_THREAD_COUNT becomes non-final.
 - FIREFOX_IE_THREAD_COUNT becomes non final.
 
New values are applied at runtime if the awsProperties contain keys
like:
 - node_max_processes_chrome=8
 - node_max_processes_firefox=1
// Allow the user to override the default settings for browser
// processes per EC2 operating system instance.
String maxChromeThreads = awsProperties.getProperty("node_max_processes_chrome");
if ((null != maxChromeThreads) && (0 != maxChromeThreads.length())) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better check is !StringUtils.isEmpty(maxChromeThreads)

@mhardin
Copy link
Owner

mhardin commented Apr 21, 2017

@adam-hampton-sp are you able to add unit tests around the new logic you added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants