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
17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 | |