doc-exports/docs/dws/dev/dws_04_1021.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-11-02 09:07:47 +00:00

199 lines
18 KiB
HTML

<a name="EN-US_TOPIC_0000001510162653"></a><a name="EN-US_TOPIC_0000001510162653"></a>
<h1 class="topictitle1">PGXC_WLM_USER_RESOURCE_HISTORY</h1>
<div id="body0000001411845909"><p id="EN-US_TOPIC_0000001510162653__p1983063921216">The <strong id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__row587317101113"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001510162653__afbe7fe3528aa4d23a961fb047a3be366">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__a37865a77d1a4411998bbb8d0892f7e33">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001510162653__row787497121111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__p1148681313253">nodename</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510162653__p1486213122516">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__p64861313202517">Instance name, including CNs and DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162653__row1787547171111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__p19384122513537">username</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510162653__p2038432565314">text</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__p476117264572">Username</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162653__row118755711117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__p11384162515537">timestamp</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p1338416250537">Timestamp</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162653__row98766714113"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p14685171665014">integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__p1230151411213">Used memory (unit: MB).</p>
<p id="EN-US_TOPIC_0000001510162653__p845618124424">On a DN, it indicates a user's memory usage on the current DN.</p>
<p id="EN-US_TOPIC_0000001510162653__p43524220416">On a CN, it indicates a user's total memory usage on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162653__row188777741116"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p1168011168503">integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__p62251431218">Available memory (unit: MB). <strong id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p723612044312">On a DN, it indicates the memory available to a user on the current DN.</p>
<p id="EN-US_TOPIC_0000001510162653__p123443334313">On a CN, it indicates the total memory available to a user on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162653__row11877778116"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__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_0000001510162653__p14255208448">On a DN, it indicates a user's CPU core usage on the current DN.</p>
<p id="EN-US_TOPIC_0000001510162653__p13895222104416">On a CN, it indicates a user's total CPU core usage on all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162653__row1878379117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p066791616503">integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__p188951125151817">Total number of CPU cores of the Cgroups associated with a user.</p>
<p id="EN-US_TOPIC_0000001510162653__p3416033164612">On a DN, it indicates the CPU cores available to a user on the current DN.</p>
<p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__row115153018129"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p12895425161810">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__p489502517187">Used permanent table storage space (unit: KB)</p>
<p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__row19352017122319"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p9653416105019">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__p245720181507">Available storage space (unit: KB). <strong id="EN-US_TOPIC_0000001510162653__b130512428542711">-1</strong> indicates that the storage space is not limited.</p>
<p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__row276320202232"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p7222183681018">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__p1246314321114">Used temporary table storage space (unit: KB)</p>
<p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__row15243524202312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p8698194610108">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__p1269824641011">Available temporary table storage space (unit: KB). <strong id="EN-US_TOPIC_0000001510162653__b105435951542711">-1</strong> indicates that the storage space is not limited.</p>
<p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__row17314102715238"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p8918185210105">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__p13918185217106">Size of space used for operator spill to disk, in KB.</p>
<p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__row1167423319238"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p1065305881013">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__p465325817104">Size of space available for operator spill to disk, in KB. The value <strong id="EN-US_TOPIC_0000001510162653__b557113510589">-1</strong> indicates that the space is not limited.</p>
<p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__row3953536192319"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p638811016471">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__row1682993914233"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p1161513074715">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__row973264312233"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p08861525174711">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__row8181164962312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__p11180322104720">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__row186311124132418"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__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_0000001510162653__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_0000001510162653__row34719290249"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__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_0000001510162653__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_0000001510162653__row189552033141210"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__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_0000001510162653__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_0000001510162653__row1512010445127"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162653__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_0000001510162653__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_0000001510162653__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_0000001510162653__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>