Note
This view is available starting with V4.0.0.
Purpose
This view displays the unit specifications of all tenants.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| UNIT_CONFIG_ID | bigint(20) | NO | The ID of the unit specification. |
| NAME | varchar(128) | NO | The name of the unit specification. |
| CREATE_TIME | timestamp(6) | YES | The time when the unit specification was created. |
| MODIFY_TIME | timestamp(6) | YES | The time when the information was updated. |
| 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. |
| LOG_DISK_SIZE | bigint(20) | NO | The size of the log disk, 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 unit specifications of all tenants in the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_UNIT_CONFIGS;
The query result is as follows:
+----------------+-----------------+----------------------------+----------------------------+---------+---------+-------------+---------------+---------------------+---------------------+-------------+
| UNIT_CONFIG_ID | NAME | CREATE_TIME | MODIFY_TIME | MAX_CPU | MIN_CPU | MEMORY_SIZE | LOG_DISK_SIZE | MAX_IOPS | MIN_IOPS | IOPS_WEIGHT |
+----------------+-----------------+----------------------------+----------------------------+---------+---------+-------------+---------------+---------------------+---------------------+-------------+
| 1 | sys_unit_config | 2025-01-06 16:31:31.406811 | 2025-01-06 16:31:31.406811 | 4 | 4 | 5368709120 | 17448304640 | 9223372036854775807 | 9223372036854775807 | 4 |
| 1001 | unit001 | 2025-01-06 16:33:09.768329 | 2025-01-06 16:33:09.768329 | 2 | 2 | 6442450944 | 19327352832 | 9223372036854775807 | 9223372036854775807 | 2 |
+----------------+-----------------+----------------------------+----------------------------+---------+---------+-------------+---------------+---------------------+---------------------+-------------+
2 rows in set