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.
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.
See also: AWS API Documentation
move-cluster-nodes
--source-cluster-arn <value>
--source-instance-group-name <value>
--target-cluster-arn <value>
--target-instance-group-name <value>
[--instance-count <value>]
[--node-ids <value>]
[--node-logical-ids <value>]
[--client-token <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
[--cli-error-format <value>]
[--help]
--source-cluster-arn (string) [required]
The Amazon Resource Name (ARN) of the HyperPod cluster that the nodes are moved from.
Constraints:
- min:
0- max:
256- pattern:
arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:cluster/[a-z0-9]{12}
--source-instance-group-name (string) [required]
The name of the instance group in the source cluster that the nodes are moved from.
Constraints:
- min:
1- max:
63- pattern:
[a-zA-Z0-9](-*[a-zA-Z0-9])*
--target-cluster-arn (string) [required]
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.
Constraints:
- min:
0- max:
256- pattern:
arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:cluster/[a-z0-9]{12}
--target-instance-group-name (string) [required]
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.
Constraints:
- min:
1- max:
63- pattern:
[a-zA-Z0-9](-*[a-zA-Z0-9])*
--instance-count (integer)
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.Constraints:
- min:
1- max:
50
--node-ids (list)
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.Constraints:
- min:
1- max:
50(string)
Constraints:
- min:
1- max:
256- pattern:
i-[a-f0-9]{8}(?:[a-f0-9]{9})?
Syntax:
"string" "string" ...
--node-logical-ids (list)
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.Constraints:
- min:
1- max:
50(string)
Constraints:
- min:
1- max:
128- pattern:
[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]
Syntax:
"string" "string" ...
--client-token (string)
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.
Constraints:
- min:
1- max:
64- pattern:
[\x21-\x7E]+
--cli-input-json | --cli-input-yaml (string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.
--generate-cli-skeleton (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format (string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.
--no-cli-pager (boolean)
Disable cli pager for output.
--cli-auto-prompt (boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt (boolean)
Disable automatically prompt for CLI input parameters.
--cli-error-format (string)
The formatting style for error output. By default, errors are displayed in enhanced format.
--help (boolean)
Display help for the command/subcommand.
Successful -> (list)
This list contains the instance IDs of the nodes that were accepted for the move. The response includes this list when you specify
NodeIdsorInstanceCount.Constraints:
- min:
1- max:
50(string)
Constraints:
- min:
1- max:
256- pattern:
i-[a-f0-9]{8}(?:[a-f0-9]{9})?
Failed -> (list)
The instance IDs that could not be moved, each with an error code and message. The response includes this list when you specify
NodeIds. If none of the specified nodes can be moved, the request fails and no nodes are moved.Constraints:
- min:
1- max:
50(structure)
Describes why a node, identified by its instance ID, could not be moved in a
MoveClusterNodesrequest. Contains the instance ID, an error code, and an error message.Code -> (string) [required]
The error code associated with the error encountered when moving the node. The error code is one of the following values:
NodeIdNotFound: The node does not exist in the source instance group.InvalidNodeStatus: The node is not in a state that allows the move. For example, the node is notRunning, is not in a subnet of the target instance group, or has an attached Amazon EBS volume that you must detach first.NodeIdInUse: Another operation is already in progress for this node. Wait for the operation to complete before retrying.NodeInstanceTypeMismatch: The target instance group does not support the node’s instance type.Possible values:
NodeIdNotFoundInvalidNodeStatusNodeIdInUseNodeInstanceTypeMismatchMessage -> (string) [required]
A human-readable message describing the error encountered when moving the node.NodeId -> (string) [required]
The instance ID of the node that could not be moved.
Constraints:
- min:
1- max:
256- pattern:
i-[a-f0-9]{8}(?:[a-f0-9]{9})?
SuccessfulNodeLogicalIds -> (list)
The
NodeLogicalIdsof the nodes that were accepted for the move. The response includes this list when you specifyNodeLogicalIds.Constraints:
- min:
1- max:
50(string)
Constraints:
- min:
1- max:
128- pattern:
[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]
FailedNodeLogicalIds -> (list)
The
NodeLogicalIdsthat could not be moved, each with an error code and message. The response includes this list when you specifyNodeLogicalIds. If none of the specified nodes can be moved, the request fails and no nodes are moved.Constraints:
- min:
1- max:
50(structure)
Describes why a node, identified by its
NodeLogicalId, could not be moved in aMoveClusterNodesrequest. Contains theNodeLogicalId, an error code, and an error message.Code -> (string) [required]
The error code associated with the error encountered when moving the node. The error code is one of the following values:
NodeIdNotFound: The node does not exist in the source instance group.InvalidNodeStatus: The node is not in a state that allows the move. For example, the node is notRunning, is not in a subnet of the target instance group, or has an attached Amazon EBS volume that you must detach first.NodeIdInUse: Another operation is already in progress for this node. Wait for the operation to complete before retrying.NodeInstanceTypeMismatch: The target instance group does not support the node’s instance type.Possible values:
NodeIdNotFoundInvalidNodeStatusNodeIdInUseNodeInstanceTypeMismatchMessage -> (string) [required]
A human-readable message describing the error encountered when moving the node.NodeLogicalId -> (string) [required]
The
NodeLogicalIdof the node that could not be moved.Constraints:
- min:
1- max:
128- pattern:
[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]