Files
doc-exports/docs/dws/dev/dws_04_1021.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

199 lines
18 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<a name="EN-US_TOPIC_0000001811609725"></a><a name="EN-US_TOPIC_0000001811609725"></a>
<h1 class="topictitle1">PGXC_WLM_USER_RESOURCE_HISTORY</h1>
<div id="body0000001411845909"><p id="EN-US_TOPIC_0000001811609725__p1983063921216">The <strong id="EN-US_TOPIC_0000001811609725__b10891105314594">PGXC_WLM_USER_RESOURCE_HISTORY</strong> view displays historical information about resource consumption of all users on the corresponding instances. This view is supported only by clusters of version 8.2.0 or later.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001811609725__table1587313721120" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PGXC_WLM_USER_RESOURCE_HISTORY columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001811609725__row587317101113"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001811609725__afbe7fe3528aa4d23a961fb047a3be366"><strong id="EN-US_TOPIC_0000001811609725__b15974490344390">Column</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001811609725__a32766e1c79fc45b5a8bc604d73582551">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001811609725__a37865a77d1a4411998bbb8d0892f7e33">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001811609725__row787497121111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p1148681313253">nodename</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p1486213122516">Name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p64861313202517">Instance name, including CNs and DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row1787547171111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p19384122513537">username</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p2038432565314">Text</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p476117264572">Username</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row118755711117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p11384162515537">Timestamp</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p238412514537">Timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p1338416250537">Timestamp</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row98766714113"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p668511435018">used_memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p14685171665014">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p1230151411213">Used memory (unit: MB).</p>
<p id="EN-US_TOPIC_0000001811609725__p845618124424">On a DN, it indicates a user's memory usage on the current DN.</p>
<p id="EN-US_TOPIC_0000001811609725__p43524220416">On a CN, it indicates a user's total memory usage on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row188777741116"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p5679514175011">total_memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p1168011168503">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p62251431218">Available memory (unit: MB). <strong id="EN-US_TOPIC_0000001811609725__b152788286842711">0</strong> indicates that the available memory is not limited and depends on the maximum memory available in the database.</p>
<p id="EN-US_TOPIC_0000001811609725__p723612044312">On a DN, it indicates the memory available to a user on the current DN.</p>
<p id="EN-US_TOPIC_0000001811609725__p123443334313">On a CN, it indicates the total memory available to a user on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row11877778116"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p1867311148502">used_cpu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p1267381675012">Double precision</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p10480171813500">Number of CPU cores in use. Only the CPU usage of complex jobs in the non-default resource pool is collected, and the value is the CPU usage of the related cgroup.</p>
<p id="EN-US_TOPIC_0000001811609725__p14255208448">On a DN, it indicates a user's CPU core usage on the current DN.</p>
<p id="EN-US_TOPIC_0000001811609725__p13895222104416">On a CN, it indicates a user's total CPU core usage on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row1878379117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p36685141505">total_cpu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p066791616503">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p188951125151817">Total number of CPU cores of the Cgroups associated with a user.</p>
<p id="EN-US_TOPIC_0000001811609725__p3416033164612">On a DN, it indicates the CPU cores available to a user on the current DN.</p>
<p id="EN-US_TOPIC_0000001811609725__p2417133114610">On a CN, it indicates the total CPU cores available to a user on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row115153018129"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p1689592518180">used_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p12895425161810">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p489502517187">Used permanent table storage space (unit: KB)</p>
<p id="EN-US_TOPIC_0000001811609725__p1249215442477">On a DN, it indicates the size of the permanent table storage space used by a user on the current DN.</p>
<p id="EN-US_TOPIC_0000001811609725__p1549219443470">On a CN, it indicates the total size of the permanent table storage space used by a user on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row19352017122319"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p186535140501">total_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p9653416105019">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p245720181507">Available storage space, in KB. <strong id="EN-US_TOPIC_0000001811609725__b130512428542711">1</strong> indicates that the storage space is not limited.</p>
<p id="EN-US_TOPIC_0000001811609725__p19152032485">On a DN, it indicates the size of the permanent table storage space available to a user on the current DN.</p>
<p id="EN-US_TOPIC_0000001811609725__p18152835486">On a CN, it indicates the total size of the permanent table storage space available to a user on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row276320202232"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p94639321619">used_temp_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p7222183681018">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p1246314321114">Used temporary table storage space (unit: KB)</p>
<p id="EN-US_TOPIC_0000001811609725__p11650624124817">On a DN, it indicates the size of the temporary table storage space used by a user on the current DN.</p>
<p id="EN-US_TOPIC_0000001811609725__p1265072494810">On a CN, it indicates the total size of the temporary table storage space used by a user on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row15243524202312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p76971146151017">total_temp_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p8698194610108">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p1269824641011">Available temporary table storage space, in KB. <strong id="EN-US_TOPIC_0000001811609725__b105435951542711">1</strong> indicates that the storage space is not limited.</p>
<p id="EN-US_TOPIC_0000001811609725__p8284143814486">On a DN, it indicates the size of the temporary table storage space available to a user on the current DN.</p>
<p id="EN-US_TOPIC_0000001811609725__p228463884817">On a CN, it indicates the total size of the temporary table storage space available to a user on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row17314102715238"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p199181152111020">used_spill_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p8918185210105">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p13918185217106">Size of space used for operator spill to disk, in KB.</p>
<p id="EN-US_TOPIC_0000001811609725__p2450172614497">On a DN, it indicates displays the size of the operator flushing space used by the user on the current DN.</p>
<p id="EN-US_TOPIC_0000001811609725__p17450112654917">On a CN, it indicates the total space used by a user's operators spilled to disk on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row1167423319238"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p1653115816103">total_spill_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p1065305881013">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p465325817104">Size of space available for operator spill to disk, in KB. The value <strong id="EN-US_TOPIC_0000001811609725__b557113510589">1</strong> indicates that the space is not limited.</p>
<p id="EN-US_TOPIC_0000001811609725__p1782313432494">On a DN, it indicates displays the size of the operator flushing space that can be used by the user on the current DN.</p>
<p id="EN-US_TOPIC_0000001811609725__p208232043184919">On a CN, it indicates the total space available for a user to spill operators to disk on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row3953536192319"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p8388308478">read_kbytes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p638811016471">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p8277857114811">On a CN, it indicates total number of bytes read by a user's complex jobs on all DNs in the last 5 seconds. The unit is KB.</p>
<p id="EN-US_TOPIC_0000001811609725__p1427717571481">On a DN, it indicates the total number of bytes read by a user's complex jobs from the instance startup time to the current time. The unit is KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row1682993914233"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p156151330184710">write_kbytes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p1161513074715">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p1217253213581">On a CN, it indicates total number of bytes written by a user's complex jobs on all DNs in the last 5 seconds.</p>
<p id="EN-US_TOPIC_0000001811609725__p19381315114918">On a DN, it indicates the total number of bytes written by a user's complex jobs from the instance startup time to the current time. The unit is KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row973264312233"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p1188642564712">read_counts</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p08861525174711">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p19829123518498">On a CN, it indicates total number of read times of a user's complex jobs on all DNs in the last 5 seconds.</p>
<p id="EN-US_TOPIC_0000001811609725__p082910356494">On a DN, it indicates total number of read times of a user's complex jobs from the instance startup time to the current time.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row8181164962312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p111801422114718">write_counts</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p11180322104720">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p17947104213491">On a CN, it indicates total number of write times of a user's complex jobs on all DNs in the last 5 seconds.</p>
<p id="EN-US_TOPIC_0000001811609725__p394714214917">On a DN, it indicates total number of write times of a user's complex jobs from the instance startup time to the current time.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row186311124132418"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p1216147144613">read_speed</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p021614714615">Double precision</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p8976164744917">On a CN, it indicates the average read rate of a user's complex jobs on a single DN in the last 5 seconds, in KB/s.</p>
<p id="EN-US_TOPIC_0000001811609725__p1697611471499">On a DN, it indicates the average read rate of a user's complex jobs on the DN in the last 5 seconds, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row34719290249"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p12810113554613">write_speed</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p158106353462">Double precision</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p17249157134919">On a CN, it indicates the average write rate of a user's complex jobs on a single DN in the last 5 seconds, in KB/s.</p>
<p id="EN-US_TOPIC_0000001811609725__p82491257104910">On a DN, it indicates the average write rate of a user's complex jobs on the DN in the last 5 seconds, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row189552033141210"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p139552331127">send_speed</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p6955133351210">Double precision</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p4504205521210">On a CN, it indicates the sum of the average network sending rates of a user on all DNs in a 5s monitoring period, in KB/s.</p>
<p id="EN-US_TOPIC_0000001811609725__p19504195511123">On a DN, it indicates the average network sending rate of a user on the DN in a 5s monitoring period, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811609725__row1512010445127"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811609725__p31201144131216">recv_speed</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811609725__p8120144161214">Double precision</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811609725__p11900125115136">On a CN, it indicates the sum of the average network receiving rates of a user on all DNs in a 5s monitoring period, in KB/s.</p>
<p id="EN-US_TOPIC_0000001811609725__p190085113134">On a DN, it indicates the average network receiving rate of a user on the DN in a 5s monitoring period, in KB/s.</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>