-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Limit default allocated processors for the test cluster #133633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is to ensure consistent test execution. It also supports clusters before 7.6 where the setting key was `processors` instead of `node .processors`
Pinging @elastic/es-delivery (Team:Delivery) |
// Limit the number of allocated processors for all nodes in the cluster by default. | ||
// This is to ensure that the tests run consistently across different environments. | ||
String processorCount = shouldConfigureTestClustersWithOneProcessor() ? "1" : "2"; | ||
if (getVersion().onOrAfter("7.6.0")) { | ||
baseConfig.put("node.processors", processorCount); | ||
} else { | ||
baseConfig.put("processors", processorCount); | ||
} | ||
|
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.
This is moved from InternalTestClustersPlugin.java.
Here we have an access to the version of the node and it seems to be a correct place to set default values.
The tests are currently failing because of the |
This is to ensure consistent test execution. It also supports clusters before 7.6 where the setting key was `processors` instead of `node.processors`
This is to ensure consistent test execution. It also supports clusters before 7.6 where the setting key was `processors` instead of `node.processors`
This is to ensure consistent test execution. It also supports clusters before 7.6 where the setting key was `processors` instead of `node.processors`
This is to ensure consistent test execution. It also supports clusters before 7.6 where the setting key was `processors` instead of `node.processors`
This is to ensure consistent test execution. It also supports clusters before 7.6 where the setting key was `processors` instead of `node.processors` (cherry picked from commit fa692ab)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
This is to ensure consistent test execution.
It also supports clusters before 7.6 where the setting key was
processors
instead ofnode.processors
.This is continuation of #133204. That approach failed when running BwC for clusters < 7.6.0.
Related to #130612