> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# SHOW RESOURCE GROUP

> SHOW RESOURCE GROUP displays information about resource groups.

## 功能

查看资源组信息。

## 语法

```SQL theme={null}
SHOW { RESOURCE GROUPS [ALL] | RESOURCE GROUP resource_group_name }
```

## 参数说明

| **参数** | **说明** |
| - | - |
| RESOURCE GROUPS | 查看与当前用户匹配的资源组。 |
| ALL | 如果表明此参数，则查看当前集群所有资源组。 |
| RESOURCE GROUP | 查看指定资源组信息。 |
| resource\_group\_name | 待查看资源组名。 |

## 返回

| **返回** | **说明** |
| - | - |
| name | 资源组名。 |
| id | 资源组 ID。 |
| cpu\_weight | 该资源组在一个 BE 节点上调度 CPU 的权重。 |
| exclusive\_cpu\_cores | 该资源组的 CPU 硬隔离参数。 |
| mem\_limit | 资源组内存资源上限。 |
| big\_query\_cpu\_second\_limit | 大查询任务可以使用 CPU 的时间上限。 |
| big\_query\_scan\_rows\_limit | 大查询任务可以扫描的行数上限。 |
| big\_query\_mem\_limit | 大查询任务可以使用的内存上限。 |
| concurrency\_limit | 资源组中并发查询数的上限。 |
| spill\_mem\_limit\_threshold | 该资源组触发落盘的内存占用阈值。 |
| mem\_used\_pct\_limit | 资源组的内存使用百分比上限。需要开启 `enable_group_level_query_queue`。 |
| classifiers | 资源组关联的分类器信息。其中，`id` 为分类器 ID，`weight` 为分类器匹配度。 |

## 示例

示例一：查看当前集群内所有资源组的信息。

```Plain theme={null}
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 | mem_used_pct_limit  | classifiers        |
+---------------+------+------------+---------------------+-----------+----------------------------+---------------------------+---------------------+-------------------+---------------------------+---------------------+--------------------+
| default_mv_wg | 3    | 1          | 0                   | 80.0%     | 0                          | 0                         | 0                   | null              | 80%                       | null                | (id=0, weight=0.0) |
| default_wg    | 2    | 32         | 0                   | 100.0%    | 0                          | 0                         | 0                   | null              | 100%                      | null                | (id=0, weight=0.0) |
+---------------+------+------------+---------------------+-----------+----------------------------+---------------------------+---------------------+-------------------+---------------------------+---------------------+--------------------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.