Skip to content

Create cluster policy configuration

Description

Create cluster policy configuration. This policy is used for task prioritization and fair-share allocation of idle compute. This helps prioritize critical workloads and distributes idle compute across entities.

Usage

sagemaker_create_cluster_scheduler_config(Name, ClusterArn,
  SchedulerConfig, Description, Tags)

Arguments

  • Name

    [required] The name for the cluster policy. The name must be unique within the SageMaker AI HyperPod cluster specified by ClusterArn. You can use the same name in other clusters within a Region or across Regions.

  • ClusterArn

    [required] ARN of the cluster.

  • SchedulerConfig

    [required] Configuration about the monitoring schedule.

  • Description

    Description of the cluster policy.

  • Tags

    Tags of the cluster policy.

Value

A list with the following syntax:

list(
  ClusterSchedulerConfigArn = "string",
  ClusterSchedulerConfigId = "string"
)

Request syntax

svc$create_cluster_scheduler_config(
  Name = "string",
  ClusterArn = "string",
  SchedulerConfig = list(
    PriorityClasses = list(
      list(
        Name = "string",
        Weight = 123
      )
    ),
    FairShare = "Enabled"|"Disabled",
    IdleResourceSharing = "Enabled"|"Disabled"
  ),
  Description = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)