You can use elastic quotas in pod scheduling to share resources among tenants while ensuring a guaranteed amount of resources for each tenant. This topic describes how to manage elastic quota groups on AI Dashboard.

Prerequisites

  • AI Dashboard is installed. For more information, see Deploy the cloud-native AI component set.
  • The system administrator permissions are acquired. For more information, see Access AI Dashboard.
  • The cluster runs Kubernetes 1.18 or later. The elastic quota feature is supported by Kubernetes 1.20 and later. For Kubernetes versions earlier than 1.20, the ResourceQuota feature of Kubernetes is enabled.

Add a quota group

  1. Access AI Dashboard by using the username and password of the Resource Access Management (RAM) user that is configured as the administrator.
  2. In the left-side navigation pane of AI Dashboard, choose Resource Quota > Quota Group List.
  3. On the Quota Group List page, select a quota node that is not added with namespaces and click Add. After you add a child quota node, this quota node becomes a parent quota node.
    Note When you add a quota node to the quota tree, take note of the following items:
    • If a quota node is added with namespaces, you cannot create child quota nodes under the quota node.
    • If a namespace has pods in the Running state, you cannot add the namespace to or remove the namespace from a quota node.
    • You can add namespaces only to child quota nodes. You cannot add namespaces to parent quota nodes.
    • The Min value of a quota node cannot be greater than the Max value of the quota node.
    • The Min value of a parent quota node must be equal to or greater than the sum of the Min values of its child quota nodes.
    • The Max value of a parent quota node must be equal to or greater than the Max value of each of its child quota nodes.
    • The default Min value is 0. This indicates that the resources that can be used are not guaranteed. However, you can still submit jobs.
    • The default Max value is NA. This indicates that the maximum amount of resources that can be used by the quota node is unlimited.
    kubeai_add_quota_group
    1. Enter a name for the quota group. The name must be unique under its parent quota node.
    2. Specify one or more namespaces that are managed by the quota group. If you leave this parameter empty, you can continue to add child quota nodes.
    3. Specify the resource types and quotas that you want to manage. The following table describes the parameters.
      Parameter Description Required
      Resource Type The unique identifier of the resource. Yes
      Min The amount of resources that are guaranteed for the quota group. No. If you do not specify this parameter, the default value 0 is used.
      Max The maximum amount of resources that can be used by the quota group. No. If you leave this parameter empty, the maximum amount of resources that can be used by the quota group is unlimited.
    4. Click Save.
    After you add the quota group, you can view the quota group on the Quota Group List page.

Change the resource type

  1. Access AI Dashboard by using the username and password of the Resource Access Management (RAM) user that is configured as the administrator.
  2. In the left-side navigation pane of AI Dashboard, choose Resource Quota > Quota Group List.
  3. Click Change resource type. In the Change resource type dialog box, click the Add or Delete icon.
  4. Click Save.

Update a quota group

  1. Access AI Dashboard by using the username and password of the Resource Access Management (RAM) user that is configured as the administrator.
  2. In the left-side navigation pane of AI Dashboard, choose Resource Quota > Quota Group List.
  3. Select the quota group that you want to update and click Edit.
  4. In the Edit Quota Node dialog box, update resources for the quota group.
    Note The quota group that you want to update must meet the same requirements as those of the quota group that you want to add. For more information, see Add a quota group.
  5. Click Save.
    update_eqtree

Delete a quota group

  1. Access AI Dashboard by using the username and password of the Resource Access Management (RAM) user that is configured as the administrator.
  2. In the left-side navigation pane of AI Dashboard, choose Resource Quota > Quota Group List.
  3. Select the quota group that you want to delete and click Delete.
    Note You can delete a child quota node that is not added with namespaces. Do not delete the root quota root.

Search for a quota group

  1. Access AI Dashboard by using the username and password of the Resource Access Management (RAM) user that is configured as the administrator.
  2. In the left-side navigation pane of AI Dashboard, choose Resource Quota > Quota Group List.
  3. Enter the name of the quota group that you want to search for in the Name search box.
  4. Click Search.
    Note You can enter the keyword of a quota group name to perform a fuzzy match. All of the quota nodes and their parent quota nodes that match the keyword are displayed.