get_scaling_configuration_recommendation
¶
get_scaling_configuration_recommendation(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
inference_recommendations_job_name: Optional[RecommendationJobName] = None,
recommendation_id: Optional[String] = None,
endpoint_name: Optional[EndpointName] = None,
target_cpu_utilization_per_core: Optional[UtilizationPercentagePerCore] = None,
scaling_policy_objective: Optional[ScalingPolicyObjective] = None,
) -> GetScalingConfigurationRecommendationResponse
Starts an Amazon SageMaker Inference Recommender autoscaling recommendation job. Returns recommendations for autoscaling policies that you can apply to your SageMaker endpoint.
Parameters:
-
inference_recommendations_job_name(Optional[RecommendationJobName], default:None) –The name of a previously completed Inference Recommender job.
-
recommendation_id(Optional[String], default:None) –The recommendation ID of a previously completed inference recommendation. This ID should come from one of the recommendations returned by the job specified in the
InferenceRecommendationsJobNamefield.Specify either this field or the
EndpointNamefield. -
endpoint_name(Optional[EndpointName], default:None) –The name of an endpoint benchmarked during a previously completed inference recommendation job. This name should come from one of the recommendations returned by the job specified in the
InferenceRecommendationsJobNamefield.Specify either this field or the
RecommendationIdfield. -
target_cpu_utilization_per_core(Optional[UtilizationPercentagePerCore], default:None) –The percentage of how much utilization you want an instance to use before autoscaling. The default value is 50%.
-
scaling_policy_objective(Optional[ScalingPolicyObjective], default:None) –An object where you specify the anticipated traffic pattern for an endpoint.
Raises:
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 | |