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
[Backport][ML] Add setting to scale the processor count used in the model assignment planner (#98299)
* [ML] Add setting to scale the processor count used in the model assignment planner (#98296)
Adds the ml.allocated_processors_scale setting which is used to scale
the value of ml.allocated_processors_double. This setting influences
the number of model allocations that can fit on a node
# Conflicts:
# x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/MachineLearning.java
# x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/autoscaling/MlAutoscalingResourceTracker.java
# x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/utils/MlProcessors.java
* non operator
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/assignment/TrainedModelAssignmentClusterService.java
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/assignment/TrainedModelAssignmentRebalancer.java
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/autoscaling/MlMemoryAutoscalingDeciderTests.java
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1079,7 +1079,8 @@ public void testCpuModelAssignmentRequirements() {
1079
1079
)
1080
1080
).build()
1081
1081
),
1082
-
withMlNodes("ml_node_1", "ml_node_2")
1082
+
withMlNodes("ml_node_1", "ml_node_2"),
1083
+
Settings.EMPTY
1083
1084
)
1084
1085
);
1085
1086
assertTrue(
@@ -1110,7 +1111,8 @@ public void testCpuModelAssignmentRequirements() {
1110
1111
)
1111
1112
).build()
1112
1113
),
1113
-
withMlNodes("ml_node_1", "ml_node_2")
1114
+
withMlNodes("ml_node_1", "ml_node_2"),
1115
+
Settings.EMPTY
1114
1116
)
1115
1117
);
1116
1118
assertFalse(
@@ -1141,7 +1143,8 @@ public void testCpuModelAssignmentRequirements() {
0 commit comments