Execution Plan Operator Monitoring
Historical Monitoring Data of Execution Plan Operators
The historical monitoring data of execution plan operators includes the fine-grained execution progress of each operator in a query job, including the start time, execution duration, number of processed rows, memory usage, and the amount of data spilled to disks. The historical data is collected and reported every 5 seconds.
The following table lists the fields in the historical monitoring data of execution plan operators.
| Field | Type | Description |
|---|---|---|
| session_id | text | Session ID of a statement |
| statement_id | text | Statement ID |
| endpoint_id | text | Endpoint ID |
| update_time | timestamp with time zone | Current report time |
| query_id | text | debug_query_id, which is applicable to CNs |
| plan_node_id | int | Unique ID of a node in the execution plan |
| plan_node_name | text | Name of a node in the execution plan |
| start_time | timestamp | Start time |
| duration | bigint | Execution duration |
| status | text | Current status |
| query_dop | int | Query parallelism degree |
| estimated_rows | bigint | Estimated number of rows |
| tuple_processed | bigint | Number of rows that have been processed |
| min_peak_memory | int | Minimum peak memory used |
| max_peak_memory | int | Maximum peak memory used |
| average_peak_memory | int | Average peak memory used |
| memory_skew_percent | int | Memory usage skew percentage |
| min_spill_size | int | Minimum amount of data spilled to disks |
| max_spill_size | int | Maximum amount of data spilled to disks |
| average_spill_size | int | Average amount of data spilled to disks |
| spill_skew_percent | int | Skew percentage of spilled data |
| min_cpu_time | bigint | Minimum CPU time of a node |
| max_cpu_time | bigint | Maximum CPU time of a node |
| total_cpu_time | bigint | Total CPU time of all nodes |
| cpu_skew_percent | bigint | CPU usage skew percentage |
| warning | text | Warning information displayed during execution |
| parent_id | int | Parent node ID |
| exec_count | int | Number of times the node has been executed |
| progress | text | Execution progress, in percentage |
| min_net_size | bigint | Minimum amount of data transmitted over the network |
| max_net_size | bigint | Maximum amount of data transmitted over the network |
| total_net_size | bigint | Total amount of data transmitted over the network |
| min_read_size | bigint | Minimum amount of data read by a node |
| max_read_size | bigint | Maximum amount of data read by a node |
| total_read_size | bigint | Total amount of data read by all nodes |
| min_write_size | bigint | Minimum amount of data written by a node |
| max_write_size | bigint | Maximum amount of data written by a node |
| total_write_size | bigint | Total amount of data written by all nodes |
Real-Time Monitoring Data of Execution Plan Operators
The real-time monitoring data of execution plan operators includes the fine-grained execution progress of each operator in a query job, including the start time, execution duration, number of processed rows, memory usage, and the amount of data spilled to disks. The background thread samples data every 5 seconds. The real-time monitoring data only includes information about the operators that are being executed during the latest sampling. Information about the statements that have been completed cannot be obtained.
Usage method:
select * from pgxc_wlm_operator_statistics(query_id);
The following table lists the input parameter.
| Parameter | Type | Description |
|---|---|---|
| query_id | text | Query ID of a statement If the value is 0, information about all queries is returned. |
The fields displayed in the real-time monitoring data of execution plan operators are as follows.
| Field | Type | Description |
|---|---|---|
| session_id | text | Session ID of a statement |
| statement_id | text | Statement ID |
| username | text | Username |
| query_id | text | debug_query_id, which is applicable to CNs |
| tid | bigint | Thread ID |
| plan_node_id | int | Unique ID of a node in the execution plan |
| plan_node_name | text | Name of a node in the execution plan |
| start_time | timestamp | Start time |
| duration | bigint | Execution duration |
| status | text | Current status |
| query_dop | int | Query parallelism degree |
| estimated_rows | bigint | Estimated number of rows |
| tuple_processed | bigint | Number of rows that have been processed |
| min_peak_memory | int | Minimum peak memory used |
| max_peak_memory | int | Maximum peak memory used |
| average_peak_memory | int | Average peak memory used |
| memory_skew_percent | int | Memory usage skew percentage |
| min_spill_size | int | Minimum amount of data spilled to disks |
| max_spill_size | int | Maximum amount of data spilled to disks |
| average_spill_size | int | Average amount of data spilled to disks |
| spill_skew_percent | int | Skew percentage of spilled data |
| min_cpu_time | bigint | Minimum CPU time of a node |
| max_cpu_time | bigint | Maximum CPU time of a node |
| total_cpu_time | bigint | Total CPU time of all nodes |
| cpu_skew_percent | bigint | CPU usage skew percentage |
| warning | text | Warning information displayed during execution |
| parent_id | int | Parent node ID |
| exec_count | int | Number of times the node has been executed |
| progress | text | Execution progress, in percentage |
| min_net_size | bigint | Minimum amount of data transmitted over the network |
| max_net_size | bigint | Maximum amount of data transmitted over the network |
| total_net_size | bigint | Total amount of data transmitted over the network |
| min_read_size | bigint | Minimum amount of data read by a node |
| max_read_size | bigint | Maximum amount of data read by a node |
| total_read_size | bigint | Total amount of data read by all nodes |
| min_write_size | bigint | Minimum amount of data written by a node |
| max_write_size | bigint | Maximum amount of data written by a node |
| total_write_size | bigint | Total amount of data written by all nodes |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot