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

Adjusting the YARN Service Configuration

Scenario

HetuEngine depends on the resource allocation and control capabilities provided by Yarn. You need to adjust the Yarn service configuration based on the actual service and cluster server configuration to achieve the optimal performance.

Procedure

  1. Log in to FusionInsight Manager.
  2. Choose Cluster > Services > Yarn > Configurations > All Configurations and set Yarn service parameters by referring to Table 1.

    Table 1 Yarn configuration parameters

    Parameter

    Description

    Default Value

    Recommended Value

    yarn.nodemanager.resource.memory-mb

    Total physical memory on the node that can be used by Yarn. The default value is 16,384 MB. If the node has permanent processes of other services, reduce this value to reserve sufficient resources for the processes.

    16384

    To achieve the optimal performance, set this parameter to 90% of the minimum physical memory of the node in the cluster.

    yarn.nodemanager.resource.cpu-vcores

    Number of CPU cores that can be allocated to a container.

    8

    To achieve the optimal performance, set this parameter to the minimum number of vCores of the node in the cluster.

    yarn.scheduler.maximum-allocation-mb

    Maximum memory requested by each container of ResourceManager. The unit is MB. If much memory is requested, the memory that is set by the parameter is allocated.

    65536

    To achieve the optimal performance, set this parameter to 90% of the minimum physical memory of the node in the cluster.

    yarn.scheduler.maximum-allocation-vcores

    Maximum value requested by each container of ResourceManager, represented by the number of virtual CPU cores. Requests where the requested values are greater than this value are invalid and the values will be overwritten by this parameter.

    32

    To achieve the optimal performance, set this parameter to the minimum number of vCores of the node in the cluster.

  3. Click Save.
  4. Choose Cluster > Services > Yarn > More > Restart Service to restart the Yarn service for the parameters to take effect.