Note
This view is available starting with V4.0.0.
Overview
Displays the statistics of RPC requests received by the current tenant on the current OBServer node.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| SVR_IP | varchar(46) | NO | IP Address |
| SVR_PORT | bigint(20) | NO | Port Number |
| PCODE | bigint(20) | NO | RPC Packet Code |
| PCODE_NAME | varchar(256) | NO | Name Corresponding to RPC Packet Code |
| COUNT | bigint(20) | NO | Number of RPC Requests of This Type Received |
| TOTAL_SIZE | bigint(20) | NO | Total data received, in bytes |
| NET_TIME | bigint(20) | NO | The time difference between when an RPC is sent from the sender and when it is received by the receiver, in microseconds. |
| WAIT_TIME | bigint(20) | NO | Time elapsed from when the request was received until it was put into the queue, in microseconds. |
| QUEUE_TIME | bigint(20) | NO | Time spent waiting in the queue, in microseconds |
| PROCESS_TIME | bigint(20) | NO | Time consumed in actual processing, in microseconds |
| LAST_TIMESTAMP | timestamp(6) | NO | Last Update Time |
| DCOUNT | bigint(20) | NO | The number of requests for each Pcode RPC. A statistical period is 30 seconds. |
Sample query
In the user tenant, view which RPC requests received by the current tenant at the current node have a queue waiting time greater than 1 second.
obclient [oceanbase]> SELECT * FROM oceanbase.V$OB_RPC_INCOMING WHERE QUEUE_TIME > 1000000;
The query result is as follows:
+-----------+----------------+----------+-------+---------------------------------+---------+------------+-----------+-----------+------------+--------------+----------------------------+--------+
| TENANT_ID | SVR_IP | SVR_PORT | PCODE | PCODE_NAME | COUNT | TOTAL_SIZE | NET_TIME | WAIT_TIME | QUEUE_TIME | PROCESS_TIME | LAST_TIMESTAMP | DCOUNT |
+-----------+----------------+----------+-------+---------------------------------+---------+------------+-----------+-----------+------------+--------------+----------------------------+--------+
| 1002 | 11.xxx.xxx.xxx | 28825 | 1859 | OB_GET_LS_REPLAYED_SCN | 1218724 | 29249376 | 72201396 | 15302606 | 34890651 | 84984897 | 2025-03-26 16:19:55.224105 | 12 |
| 1002 | 11.xxx.xxx.xxx | 28825 | 1861 | OB_UPDATE_TENANT_INFO_CACHE | 609365 | 59717770 | 43216724 | 7943336 | 16206486 | 14017780 | 2025-03-26 16:19:55.915446 | 7 |
| 1002 | 11.xxx.xxx.xxx | 28825 | 5386 | OB_LOG_ELECTION_ACCEPT_REQUEST | 2454410 | 362025593 | 186170837 | 39153743 | 70160383 | 229360422 | 2025-03-26 16:19:55.872453 | 26 |
| 1002 | 11.xxx.xxx.xxx | 28825 | 5387 | OB_LOG_ELECTION_ACCEPT_RESPONSE | 2454410 | 732641355 | 159410652 | 31374783 | 54323964 | 60760169 | 2025-03-26 16:19:55.872554 | 26 |
+-----------+----------------+----------+-------+---------------------------------+---------+------------+-----------+-----------+------------+--------------+----------------------------+--------+
4 rows in set
References
View statistics on RPCs received by the current tenant across all nodes: GV$OB_RPC_INCOMING
View the PRC statistics sent by the current tenant on the current node: V$OB_RPC_OUTGOING
