Check cluster resource usage by executing SQL statements
You can log on to the sys tenant and execute the following SQL statement to query the resource usage of a cluster:
ob-sys 10.0.0.0 (root@oceanbase)> SELECT * FROM GV$OB_SERVERS LIMIT 2;
+----------------+----------+-------+----------+--------------+--------------+------------------+--------------+------------------+--------------+--------------+-------------------+-------------------+-----------------+--------------------+------------------+-------------------------+-------------------------+
| SVR_IP | SVR_PORT | ZONE | SQL_PORT | CPU_RESERVED | CPU_CAPACITY | CPU_CAPACITY_MAX | CPU_ASSIGNED | CPU_ASSIGNED_MAX | MEM_CAPACITY | MEM_ASSIGNED | LOG_DISK_CAPACITY | LOG_DISK_ASSIGNED | LOG_DISK_IN_USE | DATA_DISK_CAPACITY | DATA_DISK_IN_USE | DATA_DISK_HEALTH_STATUS | DATA_DISK_ABNORMAL_TIME |
+----------------+----------+-------+----------+--------------+--------------+------------------+--------------+------------------+--------------+--------------+-------------------+-------------------+-----------------+--------------------+------------------+-------------------------+-------------------------+
| 172.30.xxx.xxx | 288x | zone1 | 2881 | 2 | 62 | 62 | 4.5 | 4.5 | 75161927680 | 30064771072 | 179583320064 | 55834574848 | 15703474176 | 107374182400 | 8380219392 | NORMAL | NULL |
+----------------+----------+-------+----------+--------------+--------------+------------------+--------------+------------------+--------------+--------------+-------------------+-------------------+-----------------+--------------------+------------------+-------------------------+-------------------------+
1 row in set (0.01 sec)