move_cluster_nodes
async
¶
move_cluster_nodes(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
source_cluster_arn: Optional[ClusterArn] = None,
source_instance_group_name: Optional[ClusterInstanceGroupName] = None,
target_cluster_arn: Optional[ClusterArn] = None,
target_instance_group_name: Optional[ClusterInstanceGroupName] = None,
instance_count: Optional[MoveClusterNodesInstanceCount] = None,
node_ids: Optional[MoveClusterNodeIds] = None,
node_logical_ids: Optional[MoveClusterNodeLogicalIds] = None,
client_token: Optional[String] = None,
) -> MoveClusterNodesResponse
Moves running nodes from one instance group to another instance group. The target instance group can be in the same HyperPod cluster or in a different HyperPod cluster in the same account and Region. The underlying instances aren't terminated.
Each node keeps its instance ID, its NodeLogicalId, its network interfaces and IP addresses, and its capacity. The node then joins the target instance group with the target's configuration and lifecycle scripts.
The move replaces the node's root Amazon Elastic Block Store (Amazon EBS) volume and secondary EBS volume, which deletes any data stored on them. Back up any data that you need before you move the node.
Specify the nodes to move with exactly one of NodeIds, NodeLogicalIds, or InstanceCount. The operation is asynchronous and returns after it accepts the nodes for the move. While a node moves, its status is DetachInProgress and then AttachInProgress. The node appears in the source cluster while it detaches. After HyperPod hands the node off to the target instance group, the node appears in the target cluster. To track the node, call DescribeClusterNode or ListClusterNodes on the source or target cluster.
Both clusters must be InService, use Amazon EKS orchestration, and use Continuous as the NodeProvisioningMode.
The source and target instance groups must also use compatible configurations.
Parameters:
-
source_cluster_arn(Optional[ClusterArn], default:None) –The Amazon Resource Name (ARN) of the HyperPod cluster that the nodes are moved from.
-
source_instance_group_name(Optional[ClusterInstanceGroupName], default:None) –The name of the instance group in the source cluster that the nodes are moved from.
-
target_cluster_arn(Optional[ClusterArn], default:None) –The Amazon Resource Name (ARN) of the HyperPod cluster that the nodes are moved to. The target cluster must be in the same account and Region as the source cluster, and can be the same cluster as the source.
-
target_instance_group_name(Optional[ClusterInstanceGroupName], default:None) –The name of the instance group in the target cluster that the nodes are moved to. If the target cluster is the same as the source cluster, the target instance group must be different from the source instance group.
-
instance_count(Optional[MoveClusterNodesInstanceCount], default:None) –The number of nodes to move, from 1 to 50. HyperPod selects the nodes from the source instance group. If fewer than this number of nodes are eligible to move, the request fails and no nodes are moved. Specify exactly one of
NodeIds,NodeLogicalIds, orInstanceCount. -
node_ids(Optional[MoveClusterNodeIds], default:None) –A list of instance IDs of the nodes to move. You can specify up to 50 instance IDs. Each node is evaluated separately, so some nodes can be moved while others fail. The request fails if moving the eligible nodes would reduce the source instance group below its minimum instance count. Specify exactly one of
NodeIds,NodeLogicalIds, orInstanceCount. -
node_logical_ids(Optional[MoveClusterNodeLogicalIds], default:None) –A list of
NodeLogicalIdsof the nodes to move. You can specify up to 50NodeLogicalIds. Each node is evaluated separately, so some nodes can be moved while others fail. The request fails if moving the eligible nodes would reduce the source instance group below its minimum instance count. Specify exactly one ofNodeIds,NodeLogicalIds, orInstanceCount. -
client_token(Optional[String], default:None) –A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry the request with the same client token and the same parameters within 8 hours, the service returns the original response. It doesn't start a new move. If you reuse a client token with different parameters, the request fails.
Raises:
-
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
29949 29950 29951 29952 29953 29954 29955 29956 29957 29958 29959 29960 29961 29962 29963 29964 29965 29966 29967 29968 29969 29970 29971 29972 29973 29974 29975 29976 29977 29978 29979 29980 29981 29982 29983 29984 29985 29986 29987 29988 29989 29990 29991 29992 29993 29994 29995 29996 29997 29998 29999 30000 30001 30002 30003 30004 30005 30006 30007 30008 30009 30010 30011 30012 30013 30014 30015 30016 30017 30018 30019 30020 30021 30022 30023 30024 30025 30026 30027 30028 30029 30030 30031 30032 30033 30034 30035 30036 | |