Skip to content

Commit

Permalink
Set min number of allocations for ElasticSearchInternalService to 0 (#…
Browse files Browse the repository at this point in the history
…114829) (#114846)

* Set min number of allocations for ElasticSearchInternalService to 0

* Updating IT tests with new min allocations value

---------

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
dan-rubinstein and elasticmachine authored Oct 15, 2024
1 parent a47a210 commit 07f5b56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private static void assertDefaultElserConfig(Map<String, Object> modelConfig) {
assertThat(
modelConfig.toString(),
adaptiveAllocations,
Matchers.is(Map.of("enabled", true, "min_number_of_allocations", 1, "max_number_of_allocations", 8))
Matchers.is(Map.of("enabled", true, "min_number_of_allocations", 0, "max_number_of_allocations", 8))
);
}

Expand Down Expand Up @@ -99,7 +99,7 @@ private static void assertDefaultE5Config(Map<String, Object> modelConfig) {
assertThat(
modelConfig.toString(),
adaptiveAllocations,
Matchers.is(Map.of("enabled", true, "min_number_of_allocations", 1, "max_number_of_allocations", 8))
Matchers.is(Map.of("enabled", true, "min_number_of_allocations", 0, "max_number_of_allocations", 8))
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ private List<Model> defaultConfigs(boolean useLinuxOptimizedModel) {
null,
1,
useLinuxOptimizedModel ? ELSER_V2_MODEL_LINUX_X86 : ELSER_V2_MODEL,
new AdaptiveAllocationsSettings(Boolean.TRUE, 1, 8)
new AdaptiveAllocationsSettings(Boolean.TRUE, 0, 8)
),
ElserMlNodeTaskSettings.DEFAULT,
null // default chunking settings
Expand All @@ -855,7 +855,7 @@ private List<Model> defaultConfigs(boolean useLinuxOptimizedModel) {
null,
1,
useLinuxOptimizedModel ? MULTILINGUAL_E5_SMALL_MODEL_ID_LINUX_X86 : MULTILINGUAL_E5_SMALL_MODEL_ID,
new AdaptiveAllocationsSettings(Boolean.TRUE, 1, 8)
new AdaptiveAllocationsSettings(Boolean.TRUE, 0, 8)
),
null // default chunking settings
);
Expand Down

0 comments on commit 07f5b56

Please sign in to comment.