update_cluster
async
¶
update_cluster(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
cluster_name: Optional[ClusterNameOrArn] = None,
instance_groups: Optional[ClusterInstanceGroupSpecifications] = None,
restricted_instance_groups: Optional[
ClusterRestrictedInstanceGroupSpecifications
] = None,
restricted_instance_groups_config: Optional[
ClusterRestrictedInstanceGroupsConfig
] = None,
tiered_storage_config: Optional[ClusterTieredStorageConfig] = None,
node_recovery: Optional[ClusterNodeRecovery] = None,
instance_groups_to_delete: Optional[ClusterInstanceGroupsToDelete] = None,
node_provisioning_mode: Optional[ClusterNodeProvisioningMode] = None,
cluster_role: Optional[RoleArn] = None,
auto_scaling: Optional[ClusterAutoScalingConfig] = None,
orchestrator: Optional[ClusterOrchestrator] = None,
) -> UpdateClusterResponse
Updates a SageMaker HyperPod cluster.
Parameters:
-
cluster_name(Optional[ClusterNameOrArn], default:None) –Specify the name of the SageMaker HyperPod cluster you want to update.
-
instance_groups(Optional[ClusterInstanceGroupSpecifications], default:None) –Specify the instance groups to update.
-
restricted_instance_groups(Optional[ClusterRestrictedInstanceGroupSpecifications], default:None) –The specialized instance groups for training models like Amazon Nova to be created in the SageMaker HyperPod cluster.
-
restricted_instance_groups_config(Optional[ClusterRestrictedInstanceGroupsConfig], default:None) –The configuration for the restricted instance groups (RIG) in the SageMaker HyperPod cluster.
-
tiered_storage_config(Optional[ClusterTieredStorageConfig], default:None) –Updates the configuration for managed tier checkpointing on the HyperPod cluster. For example, you can enable or disable the feature and modify the percentage of cluster memory allocated for checkpoint storage.
-
node_recovery(Optional[ClusterNodeRecovery], default:None) –The node recovery mode to be applied to the SageMaker HyperPod cluster.
-
instance_groups_to_delete(Optional[ClusterInstanceGroupsToDelete], default:None) –Specify the names of the instance groups to delete. Use a single
,as the separator between multiple names. -
node_provisioning_mode(Optional[ClusterNodeProvisioningMode], default:None) –Determines how instance provisioning is handled during cluster operations. In
Continuousmode, the cluster provisions available instances incrementally and retries until the target count is reached. The cluster becomes operational once cluster-level resources are ready. UseCurrentCountandTargetCountinDescribeClusterto track provisioning progress. -
cluster_role(Optional[RoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM role that HyperPod assumes for cluster autoscaling operations. Cannot be updated while autoscaling is enabled.
-
auto_scaling(Optional[ClusterAutoScalingConfig], default:None) –Updates the autoscaling configuration for the cluster. Use to enable or disable automatic node scaling.
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.
-
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
32475 32476 32477 32478 32479 32480 32481 32482 32483 32484 32485 32486 32487 32488 32489 32490 32491 32492 32493 32494 32495 32496 32497 32498 32499 32500 32501 32502 32503 32504 32505 32506 32507 32508 32509 32510 32511 32512 32513 32514 32515 32516 32517 32518 32519 32520 32521 32522 32523 32524 32525 32526 32527 32528 32529 32530 32531 32532 32533 32534 32535 32536 32537 32538 32539 32540 32541 32542 32543 32544 32545 32546 32547 32548 32549 32550 32551 32552 32553 32554 32555 32556 32557 32558 32559 32560 32561 32562 32563 32564 32565 32566 32567 32568 32569 32570 32571 32572 32573 32574 32575 32576 32577 32578 32579 32580 32581 32582 | |