Defining Resource Groups and Resource Attributes

Command Center allows you to view resource groups that have been created in VMware Greenplum, to add or delete resource groups, and to edit the resource group attributes Concurrency, CPU %, Memory %, and Memory Shared Quota %.

To change values of the MEMORY_AUDITOR or CPUSET resource group attributes, use the ALTER RESOURCE GROUP SQL command.

Resource Group Editor

  1. Click EDIT to open the Resource Group editor.

  2. To delete a resource group, select the resource group, and click the minus sign that appears at the right.

    You cannot delete the default_group or admin_group resource groups. You cannot delete a resource group that is assigned to any VMware Greenplum role.

  3. To add a resource group, click ADD RESOURCE GROUP and enter a name for the resource group in the Name column. Resource group names must be unique and are case-sensitive.

  4. Adjust the values of the Concurrency, CPU %, Memory %, Memory Spill Ratio %, Memory Shared Quota % and Query Memory&nbsp resource group attributes:

    Attribute Explanation
    Concurrency The maximum number of concurrent transactions, including active and idle transactions, that are permitted in the resource group. Concurrency sets the CONCURRENCY attribute of the resource group. The total of the Concurrency columns cannot exceed the value of the VMware Greenplum max_connections coordinator server configuration parameter.
    CPU % The percentage of CPU resources available to this resource group. The percentage is the portion of the total CPU percentage allocated for all resource groups (reserved CPUs excluded), which is set with the gp_resource_group_cpu_limit server configuration parameter. CPU % sets the CPU_RATE_LIMIT attribute of the resource group.
    Memory % The percentage of memory resources available to this resource group. The percentage is the portion of the total memory allocated for all resource groups, which is set with the gp_resource_group_memory_limit VMware Greenplum configuration parameter. Changing the Memory % value sets the MEMORY_LIMIT attribute of the resource group.
    Memory Spill Ratio % The memory usage threshold for memory-intensive transactions. When a transaction reaches this threshold, it spills to disk.
    Memory Shared Quota % The quota of shared memory in the resource group. Resource groups with a MEMORY_SHARED_QUOTA threshold set aside a percentage of memory allotted to the resource group to share across transactions.
    Query Memory If a query's memory consumption reaches this value, it may spill to disk when query plans need more memory. If the gp_resource_group_enable_recalculate_query_mem server configuration parameter is enabled, Command Center uses the segment count, swap memory size, and total memory from the segment host to calcluate the value of Query Memory. Otherwise, Command Center calculates the value using the segment count, swap memory size, and total memory from the coordinator host. NOTE We recommend that you enable gp_resource_group_enable_recalculate_query_mem globably for VMware Greenplum versions 6.21 and higher.

     
    The totals of the CPU % and Memory % columns must not exceed 100%. You should not allow the total of the CPU % column to exceed 90%, because this could cause resource-intensive queries to consume nearly all CPU, starving other VMware Greenplum processes. If the total of the Memory % column is less than 100%, the unreserved memory is part of the resource group shared global memory pool. See "Global Shared Memory" in Using Resource Groups in the VMware Greenplum administration documentation for information about the global resource group shared memory pool.

  5. Click Apply to save your changes or click Cancel to abandon your changes.

Assigning Roles to Resource Groups

Every VMware Greenplum role is assigned to a single resource group in the pg_roles system table. Transactions executed by a role are managed by its assigned resource group, unless you create an assignment rule to override the default.

You can view the current resource group assignments for all roles and change a role's resource group by adding it to a different resource group.

Role Assignment Editor

To move a role to a different resource group:

  1. Enter all or part of the role name in the add role field beneath the new resource group.

  2. Choose the role from the list that is displayed and press Enter.

The change is immediately applied to the VMware Greenplum pg_roles system table.

Monitoring Resource Groups

You can determine whether your resource group settings are optimal by viewing resource utilization of resource groups, using the Command Center Resource Groups> Monitor view.

Resource Group Monitor

You may view the following information:

  • CPU utilization of a single resource group, includes a time series of data showing:
    • Average CPU usage percent per segment
    • Maximum CPU usage percent on one of the segments in the cluster
    • The CPU percent limit set for that resource group
  • CPU utilization of a selection of resource groups, includes a time series of data showing:
    • Average CPU usage percent per segment
  • Memory utilization of a specific resource group, includes a time series of data showing:
    • Average memory usage per segment
    • Maximum memory usage on one of the segments in the cluster
    • The memory limit set for that resource group
  • Memory utilization of a selection of resource groups, includes a time series of data showing:
    • Average memory usage per segment
  • Concurrency status of selected resource groups, includes a time series of data showing:
    • The number of running queries
    • The number of queued queries
    • The concurrency limit set for that resource group

Note: To perform these tasks, you must have a permission level of Operator Basic or above.

About Resource Group Selection

Using the dropdown menus on the Resource Groups Monitor page, you may select:

  • the time interval for the data you are interested in viewing
  • the resource groups whose data to display; you may select up to 10 resource groups at a time. Once you have selected resource groups whose information you want to view, you may click Apply to save the selection or Clear to clear it.

Clear Apply Groups

check-circle-line exclamation-circle-line close-line
Scroll to top icon