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
[ML] Set Adaptive Allocations Scale to Zero to 24h (#128914)
Adaptive Allocations will now wait 24 hours to scale down to zero
allocations (from one allocation).
`xpack.ml.trained_models.adaptive_allocations.scale_to_zero_time`
can be used to change this time from 24 hours to a minimum of 1
minute.
`xpack.ml.trained_models.adaptive_allocations.scale_cooldown_time`
can be used to change the time adaptive allocation scales between 1 and
max allocations. Defaults to 5 minutes.
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/adaptiveallocations/AdaptiveAllocationsScaler.java
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@
11
11
importorg.apache.logging.log4j.Logger;
12
12
importorg.elasticsearch.common.Strings;
13
13
14
+
importjava.util.function.Supplier;
15
+
14
16
/**
15
17
* Processes measured requests counts and inference times and decides whether
16
18
* the number of allocations should be scaled up or down.
@@ -33,7 +35,7 @@ public class AdaptiveAllocationsScaler {
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/test/java/org/elasticsearch/xpack/ml/inference/adaptiveallocations/AdaptiveAllocationsScalerServiceTests.java
0 commit comments