Note
This view is available starting with V4.0.0.
Purpose
This view displays the statistics of RPC requests received by the current tenant on the current OBServer node.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| SVR_IP | varchar(46) | NO | The IP address. |
| SVR_PORT | bigint(20) | NO | The port number. |
| PCODE | bigint(20) | NO | The RPC packet code. |
| PCODE_NAME | varchar(256) | NO | The name corresponding to the RPC packet code. |
| COUNT | bigint(20) | NO | The number of RPC requests of this type that have been received. |
| TOTAL_SIZE | bigint(20) | NO | The total data received. |
| NET_TIME | bigint(20) | NO | The network time. |
| WAIT_TIME | bigint(20) | NO | The time from when the request was received to when it was placed in the queue. |
| QUEUE_TIME | bigint(20) | NO | The time spent waiting in the queue. |
| PROCESS_TIME | bigint(20) | NO | The actual processing time. |
| LAST_TIMESTAMP | timestamp(6) | NO | The last update time. |
| DCOUNT | bigint(20) | NO | The request count for each Pcode RPC, with a 30-second statistical cycle. |
Sample query
In the user tenant, query the RPC requests received by the current tenant on the current node, and find those requests that have a waiting time in the queue 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
Query the statistics of RPC requests received by the current tenant on all nodes: GV$OB_RPC_INCOMING
Query the statistics of RPC requests sent by the current tenant on the current node: V$OB_RPC_OUTGOING
