Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmuhs committed Jul 27, 2023
1 parent 6f246b2 commit 000c065
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public static void getMlAutoscalingStats(
.map(DiscoveryNode::getId)
.toArray(String[]::new);

// this value is only used iff > 0 and iff all nodes have the same container size
long modelMemoryAvailableFirstNode = mlNodes.length > 0
? NativeMemoryCalculator.allowedBytesForMl(clusterState.nodes().get(mlNodes[0]), settings).orElse(0L)
: 0L;
Expand Down

0 comments on commit 000c065

Please sign in to comment.