Updated on 2024-09-23 GMT+08:00

Adding an MRS Tenant Resource Pool

In an MRS cluster, users can logically divide Yarn cluster nodes to combine multiple NodeManagers into a Yarn resource pool. Each NodeManager belongs to one resource pool only. The system contains a default resource pool by default. All NodeManagers that are not added to customized resource pools belong to this resource pool.

You can create a customized resource pool on MRS and add hosts that have not been added to other customized resource pools to it.

Prerequisites

  • The IAM users have been synchronized in advance. You can do this by clicking Synchronize next to IAM User Sync on the Dashboard page of the cluster details.
  • You have logged in to MRS Manager. For how to log in, see Accessing MRS Manager.

Adding a Resource Pool on the MRS Management Console

  1. Log in to the MRS console.
  2. On the Active Clusters page, select a running cluster and click its name to switch to the cluster details page.
  3. On the MRS details page, click Tenant.
  4. Click the Resource Pools tab.
  5. Click Create Resource Pool.
  6. In Create Resource Pool, set the properties of the resource pool.

    • Name: Enter a name for the resource pool. The name of the newly created resource pool cannot be default. The name can contain digits, letters, and underscores (_), and cannot start with an underscore (_).
    • Resource Label: Enter the resource label of the resource pool. The value can contain 1 to 50 characters, including digits, letters, underscores (_), and hyphens (-), and must start with a digit or letter.
    • Available Hosts: In the host list on the left, select a specified host name and add it to the resource pool. Only hosts in the cluster can be selected. The host list of a resource pool can be left blank.

  7. Click OK.
  8. After a resource pool is created, users can view the Name, Members, Type, vCore and Memory in the resource pool list. Hosts that are added to the customized resource pool are no longer members of the default resource pool.

Adding a Resource Pool on Manager

  1. Log in to FusionInsight Manager. Choose Tenant Resources.

    For MRS 2.x or earlier versions, select Tenant.

  2. Click Resource Pool in the navigation pane, and click Add Resource Pool.
  3. Set resource pool properties.

    • MRS cluster 3.x and later versions:
      Figure 1 Adding resources
      • Cluster: Select the cluster to which the resource pool is to be added.
      • Name: Enter a name for the resource pool. The value can contain digits, letters, and underscores (_), and cannot start with an underscore (_).
      • Resource Label: Enter the resource label of the resource pool. The value can contain 1 to 50 characters, including digits, letters, underscores (_), and hyphens (-), and must start with a digit or letter.
      • Resource: In the Available Hosts area, select specified hosts and click >> to add the hosts to the Selected Hosts area. Only hosts in the cluster can be selected. The host list of a resource pool can be left blank.

        You can search for hosts by host name, number of CPU cores, memory, operating system, or platform type based on service requirements.

    • MRS 2.x and earlier versions:
      • Name: Enter a name for the resource pool. The name of the newly created resource pool cannot be Default.

        The name consists of 1 to 20 characters and can contain digits, letters, and underscores (_) but cannot start with an underscore (_).

      • Hosts: In the host list on the left, select the name of a specified host and click >> to add the selected host to the resource pool. Only hosts in the cluster can be selected. The host list of a resource pool can be left blank.

  4. Click OK.

    After the resource pool is created, you can view it including the name, members, and mode in the resource pool list. Hosts that are added to the customized resource pool are no longer members of the default resource pool.