-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Set default processor allocation for test clusters #133204
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
Set default processor allocation for test clusters #133204
Conversation
Setting the number of processors available for node to adequately size thread pools. Related to elastic#130612
Pinging @elastic/es-delivery (Team:Delivery) |
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 think we can make this a bit more readable
|| buildParams.getBwcVersions().unreleasedInfo(version) == null | ||
); | ||
|
||
NamedDomainObjectContainer<ElasticsearchCluster> testClusters = (NamedDomainObjectContainer<ElasticsearchCluster>) project |
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 think we can simplify this a bit:
String processorCount = shouldConfigureTestClustersWithOneProcessor() ? "1" : "2";
NamedDomainObjectContainer<ElasticsearchCluster> testClusters = (NamedDomainObjectContainer<ElasticsearchCluster>) project
.getExtensions()
.getByName(TestClustersPlugin.EXTENSION_NAME);
testClusters.configureEach(elasticsearchCluster -> elasticsearchCluster.setting("node.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.
Done
Setting the number of processors available for node to adequately size thread pools. Related to elastic#130612
Setting the number of processors available for node to adequately size thread pools. Related to elastic#130612
Setting the number of processors available for node to adequately size thread pools. Related to elastic#130612
Setting the number of processors available for node to adequately size thread pools. Related to elastic#130612
Setting the number of processors available for node to adequately size thread pools. Related to elastic#130612
…improv * upstream/main: (58 commits) Fixing flaky LoggedExec (tests) (elastic#133215) CPS search should not use `skip_unavailable` (elastic#132927) Don't fail search if bottom doc can't be formatted (elastic#133188) Mute org.elasticsearch.xpack.esql.action.RandomizedTimeSeriesIT testGroupByNothing elastic#133225 Mute org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormatTests testSortedSetDocValuesWithSkipperSmall elastic#133224 Mute org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormatTests testSortedNumberMergeAwayAllValuesWithSkipper elastic#133223 Adding support for index.number_of_replicas to data stream settings (elastic#132748) Mute org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormatTests testSortedDocValuesSingleUniqueValue elastic#133221 Fix VectorSimilarityFunctionsIT (elastic#133206) Mute org.elasticsearch.xpack.esql.action.RandomizedTimeSeriesIT testGroupBySubset elastic#133220 Increase the number of FORK branches in ForkGenerator (elastic#132019) Mute org.elasticsearch.index.mapper.blockloader.IpFieldBlockLoaderTests testBlockLoader {preference=Params[syntheticSource=true, preference=STORED]} elastic#133218 Mute org.elasticsearch.index.mapper.blockloader.IpFieldBlockLoaderTests testBlockLoader {preference=Params[syntheticSource=true, preference=DOC_VALUES]} elastic#133217 Mute org.elasticsearch.index.mapper.blockloader.IpFieldBlockLoaderTests testBlockLoader {preference=Params[syntheticSource=true, preference=NONE]} elastic#133216 Set default processor allocation for test clusters (elastic#133204) Add mapper for exponential histograms (elastic#132493) Fix offset handling in Murmur3Hasher (elastic#133193) unmute testDoesNotResolveClosedIndex (elastic#133115) Fix an AWS SDK v2 release note (elastic#133155) Limit the depth of a filter (elastic#133113) ...
* upstream/main: (58 commits) Fixing flaky LoggedExec (tests) (elastic#133215) CPS search should not use `skip_unavailable` (elastic#132927) Don't fail search if bottom doc can't be formatted (elastic#133188) Mute org.elasticsearch.xpack.esql.action.RandomizedTimeSeriesIT testGroupByNothing elastic#133225 Mute org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormatTests testSortedSetDocValuesWithSkipperSmall elastic#133224 Mute org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormatTests testSortedNumberMergeAwayAllValuesWithSkipper elastic#133223 Adding support for index.number_of_replicas to data stream settings (elastic#132748) Mute org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormatTests testSortedDocValuesSingleUniqueValue elastic#133221 Fix VectorSimilarityFunctionsIT (elastic#133206) Mute org.elasticsearch.xpack.esql.action.RandomizedTimeSeriesIT testGroupBySubset elastic#133220 Increase the number of FORK branches in ForkGenerator (elastic#132019) Mute org.elasticsearch.index.mapper.blockloader.IpFieldBlockLoaderTests testBlockLoader {preference=Params[syntheticSource=true, preference=STORED]} elastic#133218 Mute org.elasticsearch.index.mapper.blockloader.IpFieldBlockLoaderTests testBlockLoader {preference=Params[syntheticSource=true, preference=DOC_VALUES]} elastic#133217 Mute org.elasticsearch.index.mapper.blockloader.IpFieldBlockLoaderTests testBlockLoader {preference=Params[syntheticSource=true, preference=NONE]} elastic#133216 Set default processor allocation for test clusters (elastic#133204) Add mapper for exponential histograms (elastic#132493) Fix offset handling in Murmur3Hasher (elastic#133193) unmute testDoesNotResolveClosedIndex (elastic#133115) Fix an AWS SDK v2 release note (elastic#133155) Limit the depth of a filter (elastic#133113) ...
…133213) * Set default processor allocation for test clusters (#133204) Setting the number of processors available for node to adequately size thread pools. Related to #130612 * Lowering the allocations during update to fit within available processors --------- Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
…133210) * Set default processor allocation for test clusters (#133204) Setting the number of processors available for node to adequately size thread pools. Related to #130612 * Lowering the allocations during update to fit within available processors --------- Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
…133209) * Set default processor allocation for test clusters (#133204) Setting the number of processors available for node to adequately size thread pools. Related to #130612 * Lowering the allocations during update to fit within available processors --------- Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Setting the number of processors available for node to adequately size thread pools. Related to elastic#130612
Setting the number of processors available for node to adequately size thread pools. Related to elastic#130612
…133211) * Set default processor allocation for test clusters (#133204) Setting the number of processors available for node to adequately size thread pools. Related to #130612 * Lowering the allocations during update to fit within available processors --------- Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
…133212) * Set default processor allocation for test clusters (#133204) Setting the number of processors available for node to adequately size thread pools. Related to #130612 * Lowering the allocations during update to fit within available processors --------- Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
For folks like me who are sometimes doing local benchmarking via |
I'm also wondering if we could take an increased heap size (like |
Setting the number of processors available for node to adequately size thread pools.
Related to #130612