get_scaling_configuration_recommendation
async
¶
get_scaling_configuration_recommendation(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 | |