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
32060 32061 32062 32063 32064 32065 32066 32067 32068 32069 32070 32071 32072 32073 32074 32075 32076 32077 32078 32079 32080 32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 | |