Updated on 2022-02-22 GMT+08:00

Configuring the Queue Capacity Policy of a Resource Pool

Scenario

After a resource pool is added, the capacity policies of available resources need to be configured for Yarn task queues. This ensures that tasks in the resource pool are running properly. Each queue can be configured with the queue capacity policy of only one resource pool. Users can view the queues in any resource pool and configure queue capacity policies. After the queue policies are configured, Yarn task queues and resource pools are associated.

You can configure queue policies on MRS.

Prerequisites

  • A resource pool has been added.
  • The task queues are not associated with other resource pools. By default, all queues are associated with the Default resource pool.
  • You have synchronized IAM users (on the Dashboard tab page, click Click to synchronize on the right side of IAM User Sync to synchronize IAM users).

Procedure

  1. On the MRS details page, click Tenants.

    For MRS 3.x or later, see Overview.

  2. Click the Resource Distribution Policies tab.
  3. In Resource Pools, select a specified resource pool.

    Available Resource Quota: indicates that all resources in each resource pool are available for queues by default.

  4. Locate the specified queue in the Resource Allocation table, and click Modify in the Operation column.
  5. In Modify Resource Allocation, configure the resource capacity policy of the task queue in the resource pool.

    • Capacity (%): specifies the percentage of the current tenant's computing resource usage.
    • Maximum Capacity (%): specifies the percentage of the current tenant's maximum computing resource usage.

  6. Click OK to save the settings.