Skip to content

Commit 38d9710

Browse files
Set min number of allocations for ElasticSearchInternalService to 0 (#114829)
* 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 97c207c commit 38d9710

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
@@ -854,7 +854,7 @@ private List<Model> defaultConfigs(boolean useLinuxOptimizedModel) {
854854
null,
855855
1,
856856
useLinuxOptimizedModel ? ELSER_V2_MODEL_LINUX_X86 : ELSER_V2_MODEL,
857-
new AdaptiveAllocationsSettings(Boolean.TRUE, 1, 8)
857+
new AdaptiveAllocationsSettings(Boolean.TRUE, 0, 8)
858858
),
859859
ElserMlNodeTaskSettings.DEFAULT,
860860
null // default chunking settings
@@ -867,7 +867,7 @@ private List<Model> defaultConfigs(boolean useLinuxOptimizedModel) {
867867
null,
868868
1,
869869
useLinuxOptimizedModel ? MULTILINGUAL_E5_SMALL_MODEL_ID_LINUX_X86 : MULTILINGUAL_E5_SMALL_MODEL_ID,
870-
new AdaptiveAllocationsSettings(Boolean.TRUE, 1, 8)
870+
new AdaptiveAllocationsSettings(Boolean.TRUE, 0, 8)
871871
),
872872
null // default chunking settings
873873
);

0 commit comments

Comments
 (0)