SageMaker / Client / describe_cluster

describe_cluster#

SageMaker.Client.describe_cluster(**kwargs)#

Retrieves information of a SageMaker HyperPod cluster.

See also: AWS API Documentation

Request Syntax

response = client.describe_cluster(
    ClusterName='string'
)
Parameters:

ClusterName (string) –

[REQUIRED]

The string name or the Amazon Resource Name (ARN) of the SageMaker HyperPod cluster.

Return type:

dict

Returns:

Response Syntax

{
    'ClusterArn': 'string',
    'ClusterName': 'string',
    'ClusterStatus': 'Creating'|'Deleting'|'Failed'|'InService'|'RollingBack'|'SystemUpdating'|'Updating',
    'CreationTime': datetime(2015, 1, 1),
    'FailureMessage': 'string',
    'InstanceGroups': [
        {
            'CurrentCount': 123,
            'TargetCount': 123,
            'InstanceGroupName': 'string',
            'InstanceType': 'ml.p4d.24xlarge'|'ml.p4de.24xlarge'|'ml.p5.48xlarge'|'ml.trn1.32xlarge'|'ml.trn1n.32xlarge'|'ml.g5.xlarge'|'ml.g5.2xlarge'|'ml.g5.4xlarge'|'ml.g5.8xlarge'|'ml.g5.12xlarge'|'ml.g5.16xlarge'|'ml.g5.24xlarge'|'ml.g5.48xlarge'|'ml.c5.large'|'ml.c5.xlarge'|'ml.c5.2xlarge'|'ml.c5.4xlarge'|'ml.c5.9xlarge'|'ml.c5.12xlarge'|'ml.c5.18xlarge'|'ml.c5.24xlarge'|'ml.c5n.large'|'ml.c5n.2xlarge'|'ml.c5n.4xlarge'|'ml.c5n.9xlarge'|'ml.c5n.18xlarge'|'ml.m5.large'|'ml.m5.xlarge'|'ml.m5.2xlarge'|'ml.m5.4xlarge'|'ml.m5.8xlarge'|'ml.m5.12xlarge'|'ml.m5.16xlarge'|'ml.m5.24xlarge'|'ml.t3.medium'|'ml.t3.large'|'ml.t3.xlarge'|'ml.t3.2xlarge',
            'LifeCycleConfig': {
                'SourceS3Uri': 'string',
                'OnCreate': 'string'
            },
            'ExecutionRole': 'string',
            'ThreadsPerCore': 123
        },
    ],
    'VpcConfig': {
        'SecurityGroupIds': [
            'string',
        ],
        'Subnets': [
            'string',
        ]
    }
}

Response Structure

  • (dict) –

    • ClusterArn (string) –

      The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster.

    • ClusterName (string) –

      The name of the SageMaker HyperPod cluster.

    • ClusterStatus (string) –

      The status of the SageMaker HyperPod cluster.

    • CreationTime (datetime) –

      The time when the SageMaker Cluster is created.

    • FailureMessage (string) –

      The failure message of the SageMaker HyperPod cluster.

    • InstanceGroups (list) –

      The instance groups of the SageMaker HyperPod cluster.

      • (dict) –

        Details of an instance group in a SageMaker HyperPod cluster.

        • CurrentCount (integer) –

          The number of instances that are currently in the instance group of a SageMaker HyperPod cluster.

        • TargetCount (integer) –

          The number of instances you specified to add to the instance group of a SageMaker HyperPod cluster.

        • InstanceGroupName (string) –

          The name of the instance group of a SageMaker HyperPod cluster.

        • InstanceType (string) –

          The instance type of the instance group of a SageMaker HyperPod cluster.

        • LifeCycleConfig (dict) –

          Details of LifeCycle configuration for the instance group.

          • SourceS3Uri (string) –

            An Amazon S3 bucket path where your LifeCycle scripts are stored.

          • OnCreate (string) –

            The directory of the LifeCycle script under SourceS3Uri. This LifeCycle script runs during cluster creation.

        • ExecutionRole (string) –

          The execution role for the instance group to assume.

        • ThreadsPerCore (integer) –

          The number you specified to TreadsPerCore in CreateCluster for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. For more information, see the reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.

    • VpcConfig (dict) –

      Specifies 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.

      • SecurityGroupIds (list) –

        The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

        • (string) –

      • Subnets (list) –

        The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.

        • (string) –

Exceptions

  • SageMaker.Client.exceptions.ResourceNotFound