Skip to content

Commit

Permalink
[ML] Removes info callout mentioning ML nodes for serverless environm…
Browse files Browse the repository at this point in the history
…ent (#187583)

## Summary

Fixes #187575

Remove an info callout mentioning the number of ML nodes for serverless
environment
  • Loading branch information
darnautov authored Jul 5, 2024
1 parent 55bbab1 commit 3a9b01c
Showing 1 changed file with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
requiredValidator,
} from '../../../common/util/validators';
import type { ModelItem } from './models_list';
import { useEnabledFeatures } from '../contexts/ml';

interface DeploymentSetupProps {
config: ThreadingParams;
Expand Down Expand Up @@ -373,6 +374,8 @@ export const StartUpdateDeploymentModal: FC<StartDeploymentModalProps> = ({
initialParams,
modelAndDeploymentIds,
}) => {
const { showNodeInfo } = useEnabledFeatures();

const isUpdate = !!initialParams;

const { total_ml_processors: totalMlProcessors } = getNewJobLimits();
Expand Down Expand Up @@ -441,18 +444,22 @@ export const StartUpdateDeploymentModal: FC<StartDeploymentModalProps> = ({
</EuiModalHeader>

<EuiModalBody>
<EuiCallOut
size={'s'}
title={
<FormattedMessage
id="xpack.ml.trainedModels.modelsList.startDeployment.maxNumOfProcessorsWarning"
defaultMessage="The product of the number of allocations and threads per allocation should be less than the total number of processors on your ML nodes."
{showNodeInfo ? (
<>
<EuiCallOut
size={'s'}
title={
<FormattedMessage
id="xpack.ml.trainedModels.modelsList.startDeployment.maxNumOfProcessorsWarning"
defaultMessage="The product of the number of allocations and threads per allocation should be less than the total number of processors on your ML nodes."
/>
}
iconType="iInCircle"
color={'primary'}
/>
}
iconType="iInCircle"
color={'primary'}
/>
<EuiSpacer size={'m'} />
<EuiSpacer size={'m'} />
</>
) : null}

<DeploymentSetup
config={config}
Expand Down

0 comments on commit 3a9b01c

Please sign in to comment.