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
29406 29407 29408 29409 29410 29411 29412 29413 29414 29415 29416 29417 29418 29419 29420 29421 29422 29423 29424 29425 29426 29427 29428 29429 29430 29431 29432 29433 29434 29435 29436 29437 29438 29439 29440 29441 29442 29443 29444 29445 29446 29447 29448 29449 29450 29451 29452 29453 29454 29455 29456 29457 29458 29459 29460 29461 29462 29463 29464 29465 29466 29467 29468 29469 29470 29471 29472 29473 29474 29475 29476 29477 29478 29479 29480 29481 29482 29483 29484 29485 29486 29487 29488 29489 29490 29491 29492 29493 29494 29495 29496 29497 29498 29499 29500 29501 29502 29503 29504 29505 29506 29507 29508 29509 29510 29511 29512 29513 | |