move_cluster_nodes
¶
move_cluster_nodes(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
29581 29582 29583 29584 29585 29586 29587 29588 29589 29590 29591 29592 29593 29594 29595 29596 29597 29598 29599 29600 29601 29602 29603 29604 29605 29606 29607 29608 29609 29610 29611 29612 29613 29614 29615 29616 29617 29618 29619 29620 29621 29622 29623 29624 29625 29626 29627 29628 29629 29630 29631 29632 29633 29634 29635 29636 29637 29638 29639 29640 29641 29642 29643 29644 29645 29646 29647 29648 29649 29650 29651 29652 29653 29654 29655 29656 29657 29658 29659 29660 29661 29662 29663 29664 29665 29666 29667 | |