Skip to main content

clusters

Creates, updates, deletes, gets or lists a clusters resource.

Overview

Nameclusters
TypeResource
Idaws.sagemaker.clusters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
auto_scalingobjectThe current autoscaling configuration and status for the autoscaler.
cluster_arnstringThe Amazon Resource Name (ARN) of the SageMaker HyperPod cluster. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:cluster/[a-z0-9]{12}</code>)
cluster_namestringThe name of the SageMaker HyperPod cluster. (pattern: <code>[a-zA-Z0-9](-[a-zA-Z0-9])</code>)
cluster_rolestringThe Amazon Resource Name (ARN) of the IAM role that HyperPod uses for cluster autoscaling operations. (pattern: <code>arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)
cluster_statusstringThe status of the SageMaker HyperPod cluster. (Creating, Deleting, Failed, InService, RollingBack, SystemUpdating, Updating)
creation_timestring (date-time)The time when the SageMaker Cluster is created.
failure_messagestringThe failure message of the SageMaker HyperPod cluster.
instance_groupsarrayThe instance groups of the SageMaker HyperPod cluster.
node_provisioning_modestringThe mode used for provisioning nodes in the cluster. (Continuous)
node_recoverystringThe node recovery mode configured for the SageMaker HyperPod cluster. (Automatic, None)
orchestratorobjectThe type of orchestrator used for the SageMaker HyperPod cluster.
restricted_instance_groupsarrayThe specialized instance groups for training models like Amazon Nova to be created in the SageMaker HyperPod cluster.
restricted_instance_groups_configobjectThe configuration for the restricted instance groups (RIG) in the SageMaker HyperPod cluster.
tiered_storage_configobjectThe current configuration for managed tier checkpointing on the HyperPod cluster. For example, this shows whether the feature is enabled and the percentage of cluster memory allocated for checkpoint storage.
vpc_configobjectSpecifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_clusterselectregionRetrieves information of a SageMaker HyperPod cluster.
list_clustersselectregionRetrieves the list of SageMaker HyperPod clusters.
create_clusterinsertregion, ClusterNameCreates an Amazon SageMaker HyperPod cluster. SageMaker HyperPod is a capability of SageMaker for creating and managing persistent clusters for developing large machine learning models, such as large language models (LLMs) and diffusion models. To learn more, see Amazon SageMaker HyperPod in the Amazon SageMaker Developer Guide.
update_clusterupdateregion, ClusterNameUpdates a SageMaker HyperPod cluster.
delete_clusterdeleteregionDelete a SageMaker HyperPod cluster.
start_cluster_health_checkexecregion, ClusterName, DeepHealthCheckConfigurationsStart deep health checks for a SageMaker HyperPod cluster. You can use DescribeClusterNode API to track progress of the deep health checks. The unhealthy nodes will be automatically rebooted or replaced. Please see Resilience-related Kubernetes labels by SageMaker HyperPod for details.
update_cluster_softwareexecregion, ClusterNameUpdates the platform software of a SageMaker HyperPod cluster for security patching. To learn how to use this API, see Update the SageMaker HyperPod platform software of a cluster. The UpgradeClusterSoftware API call may impact your SageMaker HyperPod cluster uptime and availability. Plan accordingly to mitigate potential disruptions to your workloads.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information of a SageMaker HyperPod cluster.

SELECT
auto_scaling,
cluster_arn,
cluster_name,
cluster_role,
cluster_status,
creation_time,
failure_message,
instance_groups,
node_provisioning_mode,
node_recovery,
orchestrator,
restricted_instance_groups,
restricted_instance_groups_config,
tiered_storage_config,
vpc_config
FROM aws.sagemaker.clusters
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon SageMaker HyperPod cluster. SageMaker HyperPod is a capability of SageMaker for creating and managing persistent clusters for developing large machine learning models, such as large language models (LLMs) and diffusion models. To learn more, see Amazon SageMaker HyperPod in the Amazon SageMaker Developer Guide.

INSERT INTO aws.sagemaker.clusters (
ClusterName,
InstanceGroups,
RestrictedInstanceGroups,
RestrictedInstanceGroupsConfig,
VpcConfig,
Tags,
Orchestrator,
NodeRecovery,
TieredStorageConfig,
NodeProvisioningMode,
ClusterRole,
AutoScaling,
region
)
SELECT
'{{ ClusterName }}' /* required */,
'{{ InstanceGroups }}',
'{{ RestrictedInstanceGroups }}',
'{{ RestrictedInstanceGroupsConfig }}',
'{{ VpcConfig }}',
'{{ Tags }}',
'{{ Orchestrator }}',
'{{ NodeRecovery }}',
'{{ TieredStorageConfig }}',
'{{ NodeProvisioningMode }}',
'{{ ClusterRole }}',
'{{ AutoScaling }}',
'{{ region }}'
RETURNING
cluster_arn
;

UPDATE examples

Updates a SageMaker HyperPod cluster.

UPDATE aws.sagemaker.clusters
SET
ClusterName = '{{ ClusterName }}',
InstanceGroups = '{{ InstanceGroups }}',
RestrictedInstanceGroups = '{{ RestrictedInstanceGroups }}',
RestrictedInstanceGroupsConfig = '{{ RestrictedInstanceGroupsConfig }}',
TieredStorageConfig = '{{ TieredStorageConfig }}',
NodeRecovery = '{{ NodeRecovery }}',
InstanceGroupsToDelete = '{{ InstanceGroupsToDelete }}',
NodeProvisioningMode = '{{ NodeProvisioningMode }}',
ClusterRole = '{{ ClusterRole }}',
AutoScaling = '{{ AutoScaling }}',
Orchestrator = '{{ Orchestrator }}'
WHERE
region = '{{ region }}' --required
AND ClusterName = '{{ ClusterName }}' --required
RETURNING
cluster_arn;

DELETE examples

Delete a SageMaker HyperPod cluster.

DELETE FROM aws.sagemaker.clusters
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Start deep health checks for a SageMaker HyperPod cluster. You can use DescribeClusterNode API to track progress of the deep health checks. The unhealthy nodes will be automatically rebooted or replaced. Please see Resilience-related Kubernetes labels by SageMaker HyperPod for details.

EXEC aws.sagemaker.clusters.start_cluster_health_check
@region='{{ region }}' --required
@@json=
'{
"ClusterName": "{{ ClusterName }}",
"DeepHealthCheckConfigurations": "{{ DeepHealthCheckConfigurations }}"
}'
;