Updated on 2024-04-11 GMT+08:00

Modifying Queue Resources

Scenario

If resources need to be adjusted based on service requirements, you can scale up or down a queue by modifying the queue configuration of a specified tenant on FusionInsight Manager. Yarn queues are associated with resource pools for resource allocation and scheduling.

Prerequisites

A tenant who uses the Capacity scheduler has been added.

Procedure

  1. Log in to FusionInsight Manager.
  2. Choose Tenant Resources > Dynamic Resource Plan.

    The Resource Distribution Policy page is displayed by default.

  3. Click the Queue Configurations tab.
  4. In All tenants resources area, locate the row that contains the target tenant resource and click Modify in the Operation column.

    • You can also access the Modify Queue Configuration page as follows: In the tenant list on the Tenant Resources Management page, click the target tenant, click the Resource tab, and click next to Queue Configurations (Queue name).
    • A queue can be bound to only one non-default resource pool. That is, a newly added resource pool can be bound to only one queue to serve as the default resource pool of the queue.
    Table 1 Queue configuration parameters

    Parameter

    Description

    Tenant Resources Name (Queue)

    Indicates the tenant name and queue name.

    Maximum Applications

    Indicates the maximum number of applications.

    Maximum AM Resource Percent

    Indicates the maximum percentage of resources that can be used to run the ApplicationMaster in a cluster.

    Minimum User Resource Upper-Limit Percent (%)

    Indicates the minimum resource guarantee (percentage) of a user. The resources for each user in a queue are limited at any time. If applications of multiple users are running at the same time in a queue, the resource usage of each user fluctuates between the minimum value and the maximum value. The minimum value is determined by the number of running applications, while the maximum value is determined by this parameter.

    For example, assume that this parameter is set to 25. If two users submit applications to the queue, each user can use a maximum of 50% resources; if three users submit applications to the queue, each user can use a maximum of 33% resources; if four users submit applications to the queue, each user can use a maximum of 25% resources.

    User Resource Upper-Limit Factor

    Indicates the limit factor of the maximum user resource usage. The maximum user resource usage percentage can be obtained by multiplying the limit factor with the percentage of the tenant's actual resource usage in the cluster.

    Status

    Indicates the status of a resource plan. The value can be Running or Stopped.

    Default Resource Pool

    Indicates the resource pool used by the queue. The default value is default.

    If you want to change the resource pool, configure the queue capacity first. For details, see Configuring the Queue Capacity Policy of a Resource Pool.

  5. Click OK.