Note
This view is available starting with V4.0.0.
Purpose
This view displays the unit information of the OBServer node where the tenant is located. The system tenant can view the unit information of all OBServer nodes in the cluster.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SVR_IP | varchar(46) | NO | The IP address of the server. |
| SVR_PORT | bigint(20) | NO | The port number of the server. |
| UNIT_ID | bigint(20) | NO | The ID of the unit. |
| TENANT_ID | bigint(20) | NO | The ID of the tenant to which the unit belongs. |
| ZONE | varchar(128) | NO | The name of the zone. |
| ZONE_TYPE | varchar(128) | NO | The type of the zone where the unit resides. Valid values:
NoteThis column is available starting with V4.2.0. |
| REGION | varchar(128) | NO | The name of the region to which the zone where the unit resides belongs. If this value is not set, it is default_region by default. If this value is NULL, it indicates that the value is invalid, which appears temporarily after an OBServer node restarts.
NoteThis column is available starting with V4.2.0. |
| MAX_CPU | double | NO | The upper limit of the CPU specification. |
| MIN_CPU | double | NO | The lower limit of the CPU specification. |
| MEMORY_SIZE | bigint(20) | NO | The size of memory, in bytes. |
| MAX_IOPS | bigint(20) | NO | The upper limit of the IOPS specification. |
| MIN_IOPS | bigint(20) | NO | The lower limit of the IOPS specification. |
| IOPS_WEIGHT | bigint(20) | NO | The IOPS weight. |
| MAX_NET_BANDWIDTH | bigint(20) | YES | The maximum network bandwidth of the unit, in bytes.
NoteThis column is available starting with V4.3.4. |
| NET_BANDWIDTH_WEIGHT | bigint(20) | YES | The weight of the network bandwidth of the unit.
NoteThis column is available starting with V4.3.4. |
| LOG_DISK_SIZE | bigint(20) | NO | The size of the log disk, in bytes. |
| LOG_DISK_IN_USE | bigint(20) | NO | The size of the log disk that has been used, in bytes. |
| DATA_DISK_SIZE | bigint(20) | YES |
NoteThis column is available starting with V4.3.4. |
| DATA_DISK_IN_USE | bigint(20) | NO |
|
| STATUS | varchar(64) | NO | The status of the unit:
|
| CREATE_TIME | timestamp(6) | NO | The time when the unit is created on the OBServer node. |
| REPLICA_TYPE | varchar(7) | NO | The replica type. The default value is FULL
Note
|
Sample query
In SN mode, query the information about all OBServer nodes of the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.GV$OB_UNITS\G
The query result is as follows:
*************************** 1. row ***************************
SVR_IP: 172.xx.xxx.xxx
SVR_PORT: 2882
UNIT_ID: 1001
TENANT_ID: 1002
ZONE: zone1
ZONE_TYPE: ReadWrite
REGION: default_region
MAX_CPU: 2
MIN_CPU: 2
MEMORY_SIZE: 5368709120
MAX_IOPS: 9223372036854775807
MIN_IOPS: 9223372036854775807
IOPS_WEIGHT: 2
MAX_NET_BANDWIDTH: 9223372036854775807
NET_BANDWIDTH_WEIGHT: 2
LOG_DISK_SIZE: 17394617549
LOG_DISK_IN_USE: 1732505049
DATA_DISK_SIZE: NULL
DATA_DISK_IN_USE: 26578944
STATUS: NORMAL
CREATE_TIME: 2024-10-30 10:59:25.305248
REPLICA_TYPE: FULL
1 row in set
References
Query the information about units on the current node: V$OB_UNITS.
For more information about tenant resources, see View tenant and resource information.
