MonitorAMPLoad Function | Application Programming Reference | Teradata Vantage - MonitorAMPLoad - Advanced SQL Engine - Teradata Database

Application Programming Reference

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
cpn1571792172880.ditamap
dita:ditavalPath
lze1555437562152.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