update_cluster
¶
update_cluster(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
29029 29030 29031 29032 29033 29034 29035 29036 29037 29038 29039 29040 29041 29042 29043 29044 29045 29046 29047 29048 29049 29050 29051 29052 29053 29054 29055 29056 29057 29058 29059 29060 29061 29062 29063 29064 29065 29066 29067 29068 29069 29070 29071 29072 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 29113 29114 29115 29116 29117 29118 29119 29120 29121 29122 29123 29124 29125 29126 29127 29128 29129 29130 29131 29132 29133 29134 29135 | |