You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/assignment/TrainedModelAssignment.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -226,7 +226,7 @@ public boolean hasStartedRoutes() {
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/AdaptiveAllocationsScaleFromZeroIT.java
+50-4Lines changed: 50 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,13 @@
16
16
importorg.junit.Before;
17
17
18
18
importjava.io.IOException;
19
+
importjava.util.Arrays;
19
20
importjava.util.List;
20
21
importjava.util.Map;
21
22
importjava.util.concurrent.CountDownLatch;
22
23
importjava.util.concurrent.TimeUnit;
23
24
25
+
importstaticorg.hamcrest.Matchers.hasSize;
24
26
importstaticorg.hamcrest.Matchers.is;
25
27
importstaticorg.hamcrest.Matchers.not;
26
28
importstaticorg.hamcrest.Matchers.nullValue;
@@ -69,7 +71,7 @@ public void testScaleFromZero() throws Exception {
69
71
}, 30, TimeUnit.SECONDS);
70
72
71
73
// infer will scale up
72
-
intinferenceCount = 10;
74
+
intinferenceCount = 100;
73
75
varlatch = newCountDownLatch(inferenceCount);
74
76
for (inti = 0; i < inferenceCount; i++) {
75
77
asyncInfer("Auto scale and infer", modelId, TimeValue.timeValueSeconds(5), newResponseListener() {
@@ -89,8 +91,52 @@ public void onFailure(Exception exception) {
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/adaptiveallocations/AdaptiveAllocationsScaler.java
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/adaptiveallocations/AdaptiveAllocationsScalerService.java
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/waitforallocations/ScalingInference.java
0 commit comments