Create a resource group by resource requirement

You must be logged in as a cluster administrator and you should have already added most of your hosts to the cluster.

Create new resource groups from the Platform Management Console to ensure your consumers have the appropriate group of compute hosts available to them. Often resource groups are the easiest way of creating a homogeneous group of hosts for a consumer (for example, all Linux machines). You can create a resource group by resource requirement (dynamic) or by host name (static). This procedure creates a resource group by resource requirement.

Remember:

When you create a resource group based on resource requirement, you do not select specific member hosts. If new hosts that meet those requirements are later added to the cluster, they are automatically added to the resource group.

  1. In the Platform Management Console, click Resources > Configure Resource Groups.

    Any existing resource groups are listed.

  2. Select Global Actions > Create a Resource Group.
  3. Specify a resource group name.

    Resource group names must consist of letters and numbers only (no spaces or special characters) and must be 64 characters or less.

  4. (Optional) Include a description of the resource group.

    There is a 200 character maximum.

  5. (Advanced) Specify how many slots per host you would like to have the system count.

    We do not recommend overriding the slots per host configured at the host level. It can lead to double counting your resources in your resource plan. Unless you are an advanced user, set this to 1 slot per CPU.

    The maximum number of slots per host is 9999.

  6. For the Resource Selection Method, leave the default value Dynamic (Requirements).

    Dynamic means that the member hosts of this resource group vary according to which hosts meet that requirement. The requirement itself is static. Some commonly used requirements to create a dynamic resource group include operating system, the number of CPUs, and maximum memory.

    When you create a dynamic resource group, the new hosts added to the cluster that meet the static resource requirement you specify for the resource group are automatically added to the resource group.

    For example, you can specify a dynamic resource group with the (static) requirement of select(maxmem>400) and any existing hosts in the cluster that meet this requirement when you create the resource group become members and any new hosts added to the cluster afterwards that meet this requirement are members.

    Note:

    Dynamic resource requirements are not supported. A dynamic resource requirement is one that fluctuates depending on the load on the host. A dynamic resource group is created with static (unchanging) resource requirements.

  7. Under Filter display of member hosts > Hosts to Show in List, select Hosts filtered by resource requirement.

    Do not select All hosts. You need to specify a resource requirement string.

    You specify a resource requirement that members of this group must meet. You can then preview those members in the next step.

  8. Specify the resource requirement you want.

    For example, select(LINUX86).

    Note the following:

    • The entered expression gets evaluated against each host in the cluster. If a host is found to satisfy the stated resource requirement (if it returns true/ non-zero), then the host is added to the host group.

    • Use the syntax from the select string to specify your resource requirements. You do not need to use XML equivalents in the Platform Management Console.

      Resource Requirement

      Description

      Example

      maxmem

      The maximum RAM available

      select(maxmem>400)

      maxswp

      The maximum swap space

      select(maxswp>600)

      maxtmp

      The maximum temporary space

      select(maxtmp>100)

      ncpus

      The number of CPUs

      select(ncpus==1)

      type

      The type of host

      select(LINUX86)

      ndisks

      Number of disks

      select(ndisks>1)

    • Ensure that you enter a resource requirement expression that relates to the host and that can be used during evaluation (for example, maximum memory requirement or maximum swap space).

    • If you specify a Windows host name, it must be the full name not the short name.

    Tip:

    You can use the command egoconfig addresourceattr to add a custom tag to any hosts and then specify that tag when creating a resource group. See the reference for more information.

    By default, if you specify no resource requirement, all hosts in your cluster are added to this resource group when you create it.

  9. Click Refresh Host List and expand the Member hosts section if necessary.

    A preview list of hosts that currently fulfill the requirements you specified in the resource requirement string section displays. This member list is dynamic and reflects the hosts that are currently on your cluster that meet this criteria. If hosts are added or deleted that meet the requirement you specified, they are automatically added or removed from this list.

  10. Review your member hosts.

    If you do not like the list of hosts found, refine your resource requirement selection string and try again.

  11. Click Check for overlaps.

    No hosts should overlap between resource groups. Resource groups are used to plan resource distribution in your resource plan. Having overlaps causes the hosts to be double-counted (or more) in the resource plan, resulting in recurring under-allocation of some consumers.

    If any hosts overlap, remove them from this resource group or remove them from the overlapping resource group. The exception is with hosts listed in InternalResourceGroup—although all hosts in the cluster are listed here they are not “double-counted” in the resource plan.

  12. Click Create.

To get back to your list of resource groups, click Resource Groups on the top of your page or Cancel at the bottom. You now need to update your resource plan based on these new resource groups. Note that the number of slots available for your new resource group in the resource plan is automatically detected from what you specified in your resource group.