云数据库 GaussDB-GLOBAL_WLM_RESPOOL_CONNECTION_INFO

时间:2025-02-12 15:08:11

GLOBAL_WLM_RESPOOL_CONNECTION_INFO

该视图用于查看分布式下所有节点实时的资源池连接数使用情况。查询该视图需要sysadmin权限或者monadmin权限。

该视图只能查询主DN节点上的数据,备节点需要登录到备节点上后使用系统函数gs_wlm_respool_connection_info()查询并发数使用情况。

表1 GLOBAL_WLM_RESPOOL_CONNECTION_INFO字段

名称

类型

描述

node_name

name

节点名称。

respool_name

name

资源池名称。

max_connections

name

资源池最大连接数。

curr_connections

integer

当前资源池已有连接数。

示例:
12345678
gaussdb=# SELECT * FROM GLOBAL_WLM_RESPOOL_CONCURRENCY_INFO; node_name   | respool_name | max_connections | curr_connections --------------+--------------+-----------------+------------------ coordinator1 | default_pool |              -1 |                1 datanode2    | default_pool |              -1 |                2 datanode3    | default_pool |              -1 |                2 datanode1    | default_pool |              -1 |                2(4 rows)
support.huaweicloud.com/distributed-devg-v8-gaussdb/gaussdb-12-1023.html