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
17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 | |