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 all OBServer nodes.
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 time spent processing. |
| 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 all nodes, and check which requests have a waiting time in the queue greater than 1 second.
obclient [oceanbase]> SELECT * FROM oceanbase.GV$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 | 1218124 | 29234976 | 72168837 | 15295506 | 34873846 | 84946408 | 2025-03-26 16:14:53.230033 | 8 |
| 1002 | 11.xxx.xxx.xxx | 28825 | 1861 | OB_UPDATE_TENANT_INFO_CACHE | 609064 | 59688272 | 43197630 | 7939656 | 16198986 | 14011182 | 2025-03-26 16:14:52.895647 | 4 |
| 1002 | 11.xxx.xxx.xxx | 28825 | 5386 | OB_LOG_ELECTION_ACCEPT_REQUEST | 2453199 | 361846970 | 186079294 | 39135968 | 70128226 | 229255420 | 2025-03-26 16:14:53.309030 | 16 |
| 1002 | 11.xxx.xxx.xxx | 28825 | 5387 | OB_LOG_ELECTION_ACCEPT_RESPONSE | 2453199 | 732279871 | 159336976 | 31360384 | 54295803 | 60733221 | 2025-03-26 16:14:53.309092 | 16 |
+-----------+----------------+----------+-------+---------------------------------+---------+------------+-----------+-----------+------------+--------------+----------------------------+--------+
4 rows in set
References
Query the statistics of RPC requests received by the current tenant on the current node: V$OB_RPC_INCOMING
Query the statistics of RPC requests sent by the current tenant on all nodes: GV$OB_RPC_OUTGOING
