Create a resource quota

更新时间:
复制 MD 格式

After you purchase Intelligent Computing Lingjun resources or general computing resources, create a resource quota for hierarchical management and resource isolation. A resource quota allows you to control the resource usage limits for different teams or projects. After you bind the quota to a workspace, you can use it for AI development and service inference.

Prerequisites

Before creating a resource quota, complete the following:

Add a resource quota

PAI supports two types of resource quotas: those for Intelligent Computing Lingjun resources, which require VPC, vSwitch, and security group configuration, and those for general computing resources, which do not require network configuration.

You can create a resource quota by allocating resources from a dedicated resource group in your resource pool to create a root quota, or from an existing resource quota to create a child quota.

Important

For Intelligent Computing Lingjun resources, all nodes must use the same hz identifier to ensure high-speed network connectivity between nodes.

Follow these steps:

  1. Log on to the PAI console and go to the AI Computing Resources > Resource Quota page.

  2. On the Lingjun Intelligent Computing resources or General Computing Resources tab, click Add Resource Quota.

  3. Configure the basic information:

    • Name: Enter a name for the resource quota as prompted.

    • Associate Workspace (Optional): Select a workspace to associate with the resource quota. You can then use the quota in that workspace.

      Note

      If you do not associate a workspace now, you can bind one later on the resource quota details page.

  4. Configure the quota resource information:

    1. Select a Source Type. The following source types are supported:

      • Dedicated Resource Group: Allocates resources from a dedicated resource group in your resource pool. This creates a root quota.

      • Existing Resource Quota: Allocates resources from an existing resource quota. This creates a child quota.

      For details about the relationship between parent and child quotas, see Resource Quota (Quota).

    2. Select an existing dedicated resource group or resource quota from the drop-down list.

    3. Click Add and select the Nodes/Instance Type from the existing resource quota or dedicated resource group.

  5. Configure the scheduling information:

    • Scheduling Policy: Select a Scheduling Policy to improve the utilization of computing resources. The following policies are supported:

      • Intelligent

      • Balance

      • Traversal

      • FIFO

      For details about how each scheduling policy works, see Scheduling Policy.

    • Child-level Preemption (Optional): When this option is enabled and resources are insufficient, queued tasks in the current resource quota can preempt running tasks in its child quotas. For more information, see Enable child-level preemption.

    • Self-level Preemption (Optional): When this option is enabled and resources are insufficient, queued tasks in the current resource quota can preempt running tasks in sibling quotas. For more information, see Enable same-level preemption.

    • Idle Sharing: Enabled by default. This means idle tasks can use resources in sibling and child quotas.

  6. (For resource quotas of Intelligent Computing Lingjun resources only) Configure network information:

    Configure the network information to enable instances in the resource quota to access resources in the specified VPC.

    • VPC: Select an existing VPC.

    • Security Group: Select an existing security group.

    • vSwitch: Select an existing vSwitch.

    • Default Internet Gateway (Optional): If you need to access the internet, enable this switch and select a NAT Gateway and an EIP.

  7. Click OK.

    After you create the resource quota, you can view it in the resource quota list.

image

Use a resource quota

After you create a resource quota, bind it to a workspace and then select an image for AI development and service inference.

Bind a workspace

You must bind a resource quota to a workspace before you can use it for AI development and service inference.

Note

Skip this step if you already associated a workspace when creating the resource quota.

  1. On the Resource Quota (Quota) page, click the name of the target resource quota.

  2. On the Overview tab, in the Basic Information section, click the edit icon image next to Workspace to add or modify the workspace for the resource quota.image

After you bind the resource quota to a workspace, you can also configure resource quota usage policies in the Scheduling Configuration section on the workspace details page. For more information, see Workspace Scheduling Center.image

Image selection

Using a resource quota of Intelligent Computing Lingjun resources for Distributed Learning Containers (DLC) tasks requires collaboration among software and hardware components such as servers, networks, drivers, and training frameworks. We recommend that you use official PAI images or build your own images based on them.

Note

If you use your own images, you may need to adapt drivers, frameworks, and software versions to fully leverage the high performance of Intelligent Computing Lingjun resources.