create_compute_quota
¶
create_compute_quota(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
name: Optional[EntityName] = None,
description: Optional[EntityDescription] = None,
cluster_arn: Optional[ClusterArn] = None,
compute_quota_config: Optional[ComputeQuotaConfig] = None,
compute_quota_target: Optional[ComputeQuotaTarget] = None,
activation_state: Optional[ActivationState] = None,
tags: Optional[TagList] = None,
) -> CreateComputeQuotaResponse
Create compute allocation definition. This defines how compute is allocated, shared, and borrowed for specified entities. Specifically, how to lend and borrow idle compute and assign a fair-share weight to the specified entities.
Parameters:
-
name(Optional[EntityName], default:None) –The name of the compute allocation definition. The name must be unique within the SageMaker AI HyperPod cluster specified by
ClusterArn. You can use the same name in other clusters within a Region or across Regions. -
description(Optional[EntityDescription], default:None) –Description of the compute allocation definition.
-
cluster_arn(Optional[ClusterArn], default:None) –ARN of the cluster.
-
compute_quota_config(Optional[ComputeQuotaConfig], default:None) –Configuration of the compute allocation definition. This includes the resource sharing option, and the setting to preempt low priority tasks.
-
compute_quota_target(Optional[ComputeQuotaTarget], default:None) –The target entity to allocate compute resources to.
-
activation_state(Optional[ActivationState], default:None) –The state of the compute allocation being described. Use to enable or disable compute allocation.
Default is
Enabled. -
tags(Optional[TagList], default:None) –Tags of the compute allocation definition.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 | |