Skip to content

Commit 07f5b56

Browse files
Set min number of allocations for ElasticSearchInternalService to 0 (#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]>
1 parent a47a210 commit 07f5b56

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

x-pack/plugin/inference/qa/inference-service-tests/src/javaRestTest/java/org/elasticsearch/xpack/inference/DefaultEndPointsIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private static void assertDefaultElserConfig(Map<String, Object> modelConfig) {
6464
assertThat(
6565
modelConfig.toString(),
6666
adaptiveAllocations,
67-
Matchers.is(Map.of("enabled", true, "min_number_of_allocations", 1, "max_number_of_allocations", 8))
67+
Matchers.is(Map.of("enabled", true, "min_number_of_allocations", 0, "max_number_of_allocations", 8))
6868
);
6969
}
7070

@@ -99,7 +99,7 @@ private static void assertDefaultE5Config(Map<String, Object> modelConfig) {
9999
assertThat(
100100
modelConfig.toString(),
101101
adaptiveAllocations,
102-
Matchers.is(Map.of("enabled", true, "min_number_of_allocations", 1, "max_number_of_allocations", 8))
102+
Matchers.is(Map.of("enabled", true, "min_number_of_allocations", 0, "max_number_of_allocations", 8))
103103
);
104104
}
105105
}

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/elasticsearch/ElasticsearchInternalService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ private List<Model> defaultConfigs(boolean useLinuxOptimizedModel) {
842842
null,
843843
1,
844844
useLinuxOptimizedModel ? ELSER_V2_MODEL_LINUX_X86 : ELSER_V2_MODEL,
845-
new AdaptiveAllocationsSettings(Boolean.TRUE, 1, 8)
845+
new AdaptiveAllocationsSettings(Boolean.TRUE, 0, 8)
846846
),
847847
ElserMlNodeTaskSettings.DEFAULT,
848848
null // default chunking settings
@@ -855,7 +855,7 @@ private List<Model> defaultConfigs(boolean useLinuxOptimizedModel) {
855855
null,
856856
1,
857857
useLinuxOptimizedModel ? MULTILINGUAL_E5_SMALL_MODEL_ID_LINUX_X86 : MULTILINGUAL_E5_SMALL_MODEL_ID,
858-
new AdaptiveAllocationsSettings(Boolean.TRUE, 1, 8)
858+
new AdaptiveAllocationsSettings(Boolean.TRUE, 0, 8)
859859
),
860860
null // default chunking settings
861861
);

0 commit comments

Comments
 (0)