Module org.elasticsearch.xcore
Class MlPlatformArchitecturesUtil
java.lang.Object
org.elasticsearch.xpack.core.ml.utils.MlPlatformArchitecturesUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgetMlNodesArchitecturesSet(ActionListener<Set<String>> architecturesListener, Client client, ExecutorService executor) static voidresolveEffectiveArchitectures(ClusterSettings clusterSettings, Client client, ExecutorService executor, ActionListener<Set<String>> listener) Resolves the effective set of ML node architectures.static StringresolveModelPlatformVariant(Set<String> mlNodeArchitectures, ClusterSettings clusterSettings) Resolves the preferred model platform variant based on detected ML node architectures and cluster settings.static voidverifyMlNodesAndModelArchitectures(ActionListener<TrainedModelConfig> successOrFailureListener, Client client, ExecutorService executor, TrainedModelConfig configToReturn)
-
Field Details
-
LINUX_X86_64
- See Also:
-
PLATFORM_AGNOSTIC
- See Also:
-
-
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. Ifxpack.ml.model_platform_architecturesis 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.
-