Files
doc-exports/docs/dws/dev/dws_04_1065.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

185 lines
17 KiB
HTML

<a name="EN-US_TOPIC_0000001764491104"></a><a name="EN-US_TOPIC_0000001764491104"></a>
<h1 class="topictitle1">GS_RESPOOL_MONITOR</h1>
<div id="body0000001577174481"><p id="EN-US_TOPIC_0000001764491104__p779631671713">Displays the job running information and resource usage information of all resource pools. This view can be queried only on CNs. This view is supported only by clusters of 8.2.1.100 and later versions.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001764491104__t040035450d4b45e184c38e8adde2f196" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GS_RESPOOL_MONITOR columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001764491104__r82f1e9e6ba8a432fa0505ca1baae5bf4"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001764491104__ad0171ec93e304971b233fbb24c8c9ca2"><strong id="EN-US_TOPIC_0000001764491104__b18038032984368">Column</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.18%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001764491104__ac3db39da9f5e4d2b9ac752c962df9bab">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="68.82000000000001%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001764491104__a66dd18c864c54a9ea594b9565b475aec">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001764491104__row19211712143015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p191881114163011">rpname</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p818911493014">Name</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p3189614113013">Resource pool name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__rc5c6e84192e340e8a4ec24977eb442c0"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p894516457173">nodegroup</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p14137153775218">Name</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p694684511718">Name of the logical cluster the resource pool belongs to. The default value is <strong id="EN-US_TOPIC_0000001764491104__b64126004103616">installation</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__rf45f33f15d924ef58db549cb570c3e44"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p12299105153018">cn_count</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p112991954306">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p928016513016">Number of CNs in the cluster. This parameter is used to determine whether the management and control result of a single CN is proper in a multi-CN environment.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row1161414715335"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p1261497143319">short_acc</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p106141172332">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p2614147163317">Whether to enable short query acceleration for a resource pool.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row193010614334"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p1093013619334">session_count</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p293117610337">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p79312612339">Number of sessions associated with the resource pool, that is, the number of sessions initiated by users associated with the resource pool, including idle and active sessions.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__r3832b3d187c84b9dbdc3d7fcaaddaf1f"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p7946174510171">active_count</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p99461245101714">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p18262151601">Number of active sessions associated with the resource pool, that is, the number of sessions that are performing queries.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row1442519260353"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p1042542673519">global_wait</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p11425132673518">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p16426826153513">Number of jobs associated with the resource pool that are queued because the number of concurrent jobs on a single CN exceeds the value of <strong id="EN-US_TOPIC_0000001764491104__b1186905716386">max_active_statements</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row10974113305611"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p09741833175613">fast_run</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p1497414333566">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p19974183310564">Number of jobs associated with the resource pool that are running on the fast lane.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row457673919562"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p35765399565">fast_wait</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p057615399569">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p14576133945617">Number of jobs associated with the resource pool that are queued on the fast lane.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row4402113193719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p040283153711">fast_limit</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p44021315372">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p1240214323719">Maximum number of concurrent jobs on the fast lane in a resource pool.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row115231626115613"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p10523526135617">slow_run</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p175231267567">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p8523426145613">Number of jobs associated with the resource pool that are running on the slow lane.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__r780ecffa22eb41b19e125c368a2f51c1"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p12946194561713">slow_wait</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p794614456177">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p1192335945914">Number of jobs associated with the resource pool that are queued on the slow lane.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row149331870377"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p14933127113713">slow_limit</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p139338717377">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p1293357203719">Maximum number of concurrent jobs on the slow lane in a resource pool.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row1341816452395"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p4418104533910">used_mem</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p8418124518397">Text</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p10418114553919">Average memory usage of the resource pool on all DNs. The result has been formatted using <strong id="EN-US_TOPIC_0000001764491104__b185421364120">pg_size_pretty</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row3773164983916"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p1577304973910">estimate_mem</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p677384916393">Text</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p1877344983912">Total estimated memory of jobs running in the resource pool. The result has been formatted using <strong id="EN-US_TOPIC_0000001764491104__b16247152274118">pg_size_pretty</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row137951055193917"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p17954554394">mem_limit</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p1879535517398">Text</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p339951210334">Upper limit of the available memory in the resource pool. The result has been formatted using <strong id="EN-US_TOPIC_0000001764491104__b138221932184120">pg_size_pretty</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row179201211456"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p19792121217456">query_mem_limit</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p10792312164516">Name</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p1879271212456">Maximum memory that can be used by a single query in a resource pool. This parameter is used to limit the estimated query memory to prevent abnormal queuing caused by overestimation. The estimated memory is used to limit the actually used query memory. The displayed result has been formatted using <strong id="EN-US_TOPIC_0000001764491104__b1728443120475">pg_size_pretty</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row940316598395"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p893273911443">used_cpu</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p793213944419">Double precision</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p5932039114412">Average number of CPU cores occupied by a resource pool on all DNs. CPU isolation is performed by node and resource pool. If a single node contains multiple DNs, the number of CPU cores occupied by a resource pool on a single node must be multiplied by the number of DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row1341418614013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p13932139114415">cpu_limit</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p39331539134415">Double precision</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p10933163911441">Average upper limit of available CPUs for a resource pool on all nodes. If CPU Time Limit is enabled, the value is the total number of available CPU cores of GaussDB(DWS). If CPU Usage Limit is enabled, the value is the number of available CPU cores of the associated Cgroup.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row1467820417418"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p167874164113">read_speed</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p13678124104119">Text</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p376773155913">Average logical I/O read rate of the resource pool on all DNs. The result has been formatted using <strong id="EN-US_TOPIC_0000001764491104__b14165154235014">pg_size_pretty</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row534314102419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p7343510104111">write_speed</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p13343141013417">Text</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p168757329161">Average logical I/O write rate of the resource pool on all DNs. The result has been formatted using <strong id="EN-US_TOPIC_0000001764491104__b154950205014">pg_size_pretty</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row1620895984712"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p1420819597476">send_speed</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p3208259184712">Text</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p152941740191619">Average network sending rate of the resource pool on all DNs. The result has been formatted using <strong id="EN-US_TOPIC_0000001764491104__b27271054155117">pg_size_pretty</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491104__row2218353164816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491104__p521865324820">recv_speed</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491104__p1821805310487">Text</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491104__p3752125241614">Average receiving rate of the resource pool on all DNs. The result has been formatted using <strong id="EN-US_TOPIC_0000001764491104__b145086805218">pg_size_pretty</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
</div>
</div>