Class MlPlatformArchitecturesUtil

java.lang.Object
org.elasticsearch.xpack.core.ml.utils.MlPlatformArchitecturesUtil

public class MlPlatformArchitecturesUtil extends Object
  • Field Details

  • Constructor Details

    • MlPlatformArchitecturesUtil

      public MlPlatformArchitecturesUtil()
  • Method Details

    • getMlNodesArchitecturesSet

      public static void getMlNodesArchitecturesSet(ActionListener<Set<String>> architecturesListener, Client client, ExecutorService executor)
    • verifyMlNodesAndModelArchitectures

      public static void verifyMlNodesAndModelArchitectures(ActionListener<TrainedModelConfig> successOrFailureListener, Client client, ExecutorService executor, TrainedModelConfig configToReturn)
    • resolveEffectiveArchitectures

      public static void resolveEffectiveArchitectures(ClusterSettings clusterSettings, Client client, ExecutorService executor, ActionListener<Set<String>> listener)
      Resolves the effective set of ML node architectures. If xpack.ml.model_platform_architectures is configured, uses that directly. Otherwise, queries the cluster for running ML node architectures.
    • resolveModelPlatformVariant

      public static String resolveModelPlatformVariant(Set<String> mlNodeArchitectures, ClusterSettings clusterSettings)
      Resolves the preferred model platform variant based on detected ML node architectures and cluster settings. Returns "linux-x86_64" when all ML nodes are x86, or when no ML nodes exist but the cluster is in Elastic Cloud. Returns "platform_agnostic" otherwise.