MonitorAMPLoad - Teradata Database - Teradata Vantage NewSQL Engine

Application Programming Reference

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-02
dita:mapPath
vwf1492987142269.ditamap
dita:ditavalPath
changebar_rev_16_20_exclude_audience_ie.ditaval
dita:id
B035-1090
lifecycle
previous
Product Category
Teradata Vantage™

Purpose

Returns the data from the third statement of the MONITOR AWT RESOURCE request response.

Definition

REPLACE FUNCTION SYSLIB.MonitorAMPLoad()
  RETURNS TABLE
   (VprocNo SMALLINT,
    AvailableAWTs INTEGER,
    InUseAWTs INTEGER,
    MsgCount INTEGER,
    DQMsgCount INTEGER
    AvailableAWTsForAll INTEGER
   )
    .
    .
    .
;

Usage Notes - MonitorAMPLoad

For information on the third statement returned from the MONITOR AWT RESOURCE request response, see Statement 3 - MONITOR AWT RESOURCE.

Result Rows

Column Name Description
VprocNo AMP vproc number.
AvailableAWTs Number of available AMP worker tasks in each AMP.
InUseAWTs Number of active AMP worker tasks in each AMP.
MsgCount Number of messages currently queued for delivery to each AMP.
DQMsgCount Number of messages processed by each AMP.
AvailableAWTsForAll The number of available AMP worker tasks in the unreserved pool in each AMP.

Example: Data Reported in Statement 3 of MONITOR AWT RESOURCE

This example shows the data reported in statement 3 of MONITOR AWT RESOURCE.

SELECT * FROM TABLE (MonitorAMPLoad()) AS t1;

*** Query completed. 4 rows found. 6 columns returned.
*** Total elapsed time was 1 second.

            VprocNo       0
      AvailableAWTs           49
          InUseAWTs            2
           MsgCount            0
         DQMsgCount          737
AvailableAWTsForAll           55
            VprocNo       1
      AvailableAWTs           49
          InUseAWTs            1
           MsgCount            0
         DQMsgCount          765
AvailableAWTsForAll           56
            VprocNo       2
      AvailableAWTs           49
          InUseAWTs            1
           MsgCount            0
         DQMsgCount          695
AvailableAWTsForAll           56
            VprocNo       3
      AvailableAWTs           48
          InUseAWTs            2
           MsgCount            0
         DQMsgCount          863
AvailableAWTsForAll           56