Note
This view is available starting with V4.0.0.
Purpose
This view displays the information of all units of all tenants.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| 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. NULL: The unit does not belong to any tenant. |
| STATUS | varchar(128) | NO | ACTIVE: the unit is in the active state.DELETING: the unit is being deleted. |
| RESOURCE_POOL_ID | bigint(20) | NO | The ID of the resource pool to which the unit belongs. |
| UNIT_GROUP_ID | bigint(20) | NO | The ID of the unit group to which the unit belongs. |
| CREATE_TIME | timestamp(6) | YES | The time when the unit was created. |
| MODIFY_TIME | timestamp(6) | YES | The time when the unit was last modified. |
| ZONE | varchar(128) | NO | The name of the zone. |
| SVR_IP | varchar(46) | NO | The IP address of the OBServer node to which the unit belongs. |
| SVR_PORT | bigint(20) | NO | The port number of the OBServer node to which the unit belongs. |
| MIGRATE_FROM_SVR_IP | varchar(46) | NO | NULL: the unit is not being migrated. |
| MIGRATE_FROM_SVR_PORT | bigint(20) | NO | NULL: the unit is not being migrated. |
| MANUAL_MIGRATE | varchar(3) | NO | NULL: the unit is not being migrated.YES: the unit is being manually migrated.NO: the unit is being automatically migrated. |
| UNIT_CONFIG_ID | bigint(20) | NO | The ID of the unit specification. |
| 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 memory specification, in bytes. |
| LOG_DISK_SIZE | bigint(20) | NO | The log disk specification, in bytes. |
| MAX_IOPS | bigint(20) | NO | The upper limit of the disk IOPS specification. |
| MIN_IOPS | bigint(20) | NO | The lower limit of the disk IOPS specification. |
| IOPS_WEIGHT | bigint(20) | NO | The IOPS weight. |
Sample query
Query the information of all units of all tenants.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_UNITS\G
The query result is as follows:
*************************** 1. row ***************************
UNIT_ID: 1
TENANT_ID: 1
STATUS: ACTIVE
RESOURCE_POOL_ID: 1
UNIT_GROUP_ID: 1
CREATE_TIME: 2025-02-05 17:44:33.467630
MODIFY_TIME: 2025-02-05 17:44:33.467630
ZONE: zone1
SVR_IP: 172.30.135.246
SVR_PORT: 2882
MIGRATE_FROM_SVR_IP: NULL
MIGRATE_FROM_SVR_PORT: NULL
MANUAL_MIGRATE: NULL
UNIT_CONFIG_ID: 1
MAX_CPU: 4
MIN_CPU: 4
MEMORY_SIZE: 5368709120
LOG_DISK_SIZE: 17448304640
MAX_IOPS: 9223372036854775807
MIN_IOPS: 9223372036854775807
IOPS_WEIGHT: 4
*************************** 2. row ***************************
UNIT_ID: 1001
TENANT_ID: 1002
STATUS: ACTIVE
RESOURCE_POOL_ID: 1001
UNIT_GROUP_ID: 1001
CREATE_TIME: 2025-02-05 17:45:31.306086
MODIFY_TIME: 2025-02-05 17:45:40.776673
ZONE: zone1
SVR_IP: 172.30.135.246
SVR_PORT: 2882
MIGRATE_FROM_SVR_IP: NULL
MIGRATE_FROM_SVR_PORT: NULL
MANUAL_MIGRATE: NULL
UNIT_CONFIG_ID: 1001
MAX_CPU: 2
MIN_CPU: 2
MEMORY_SIZE: 6442450944
LOG_DISK_SIZE: 19327352832
MAX_IOPS: 9223372036854775807
MIN_IOPS: 9223372036854775807
IOPS_WEIGHT: 2
*************************** 3. row ***************************
UNIT_ID: 1002
TENANT_ID: 1004
STATUS: ACTIVE
RESOURCE_POOL_ID: 1002
UNIT_GROUP_ID: 1002
CREATE_TIME: 2025-02-05 17:45:34.978445
MODIFY_TIME: 2025-02-05 17:46:49.140475
ZONE: zone1
SVR_IP: 172.30.135.246
SVR_PORT: 2882
MIGRATE_FROM_SVR_IP: NULL
MIGRATE_FROM_SVR_PORT: NULL
MANUAL_MIGRATE: NULL
UNIT_CONFIG_ID: 1001
MAX_CPU: 2
MIN_CPU: 2
MEMORY_SIZE: 6442450944
LOG_DISK_SIZE: 19327352832
MAX_IOPS: 9223372036854775807
MIN_IOPS: 9223372036854775807
IOPS_WEIGHT: 2
3 rows in set