Skip to main content
Version: Latest-3.4

SHOW RESOURCE GROUP

Description

Shows the information of resource groups.

tip

This operation does not require privileges.

Syntax

SHOW { RESOURCE GROUPS [ALL] | RESOURCE GROUP <resource_group_name> }

Parameters

ParameterDescription
RESOURCE GROUPSShow the resource groups that match the current user.
ALLSpecify this parameter to show all resource groups in the cluster.
RESOURCE GROUPShow the specified resource group.
resource_group_nameName of the resource group to be shown.

Return

ReturnDescription
nameName of the resource group.
idID of the resource group.
cpu_weightCPU scheduling weight of this resource group on a BE node.
exclusive_cpu_coresCPU hard isolation parameter for this resource group.
mem_limitMemory limit of the resource group.
big_query_cpu_second_limitBig query upper time limit of the resource group.
big_query_scan_rows_limitBig query scan row limit of the resource group.
big_query_mem_limitBig query memory limit of the resource group.
concurrency_limitConcurrency limit of the resource group.
spill_mem_limit_thresholdMemory usage threshold that triggers spilling to disk.
classifiersClassifiers that are associated with the resource group. id is the ID of the classifier, and weight is the degree of matching.

Examples

Example 1: Shows all resource groups in the cluster.

mysql> SHOW RESOURCE GROUPS ALL;
+---------------+------+------------+---------------------+-----------+----------------------------+---------------------------+---------------------+-------------------+---------------------------+--------------------+
| name | id | cpu_weight | exclusive_cpu_cores | mem_limit | big_query_cpu_second_limit | big_query_scan_rows_limit | big_query_mem_limit | concurrency_limit | spill_mem_limit_threshold | classifiers |
+---------------+------+------------+---------------------+-----------+----------------------------+---------------------------+---------------------+-------------------+---------------------------+--------------------+
| default_mv_wg | 3 | 1 | 0 | 80.0% | 0 | 0 | 0 | null | 80% | (id=0, weight=0.0) |
| default_wg | 2 | 32 | 0 | 100.0% | 0 | 0 | 0 | null | 100% | (id=0, weight=0.0) |
+---------------+------+------------+---------------------+-----------+----------------------------+---------------------------+---------------------+-------------------+---------------------------+--------------------+