Overview
Displays the current load balancing job being executed by a tenant. Each tenant can only run one load balancing job at a time. Each load balancing job generates multiple load balancing tasks to perform specific load balancing operations.
Columns
Column |
Type |
Is NULL |
Description |
|---|---|---|---|
| JOB_ID | bigint(20) | NO | CLB Work ID |
| CREATE_TIME | timestamp(6) | YES | Creation Time |
| MODIFY_TIME | timestamp(6) | YES | Information Update Time |
| BALANCE_STRATEGY | varchar(64) | NO | Balancing Strategy Name:
|
| JOB_TYPE | varchar(64) | NO | Task type. Valid values:
|
| TARGET_UNIT_NUM | bigint(20) | NO | Number of Units in Each Zone Where Target Changes Occur
NoteThe value of this field is always |
| TARGET_PRIMARY_ZONE_NUM | bigint(20) | NO | Number of Target Changed Primary Zones |
| STATUS | varchar(64) | NO | Task status:
|
| COMMENT | longtext | YES | Comments |
| MAX_END_TIME | timestamp(6) | YES | Maximum End Time of Load Balancing Task |
| ZONE_UNIT_NUM_LIST | varchar(4096) | NO | Number of Units in Each Zone of the Tenant |
| PARAMETER_LIST | longtext | NO | Balancing-related parameters |
Sample query
View the current load balancing tasks being executed for this tenant.
obclient(root@mysql001)[oceanbase]> SELECT * FROM oceanbase.DBA_OB_BALANCE_JOBS;
The query result is as follows:
+---------+----------------------------+----------------------------+------------------------+------------+-----------------+-------------------------+--------+---------+--------------+--------------------+----------------------------------------------------------------------------------------------+
| JOB_ID | CREATE_TIME | MODIFY_TIME | BALANCE_STRATEGY | JOB_TYPE | TARGET_UNIT_NUM | TARGET_PRIMARY_ZONE_NUM | STATUS | COMMENT | MAX_END_TIME | ZONE_UNIT_NUM_LIST | PARAMETER_LIST |
+---------+----------------------------+----------------------------+------------------------+------------+-----------------+-------------------------+--------+---------+--------------+--------------------+----------------------------------------------------------------------------------------------+
| 6083968 | 2026-01-16 17:23:18.070731 | 2026-01-16 17:23:18.070731 | LS group count balance | LS_BALANCE | NULL | 2 | DOING | NULL | NULL | z1:2,z2:2,z3:3 | ls_scale_out_factor:1,enable_rebalance:true,enable_transfer:true,enable_gts_standalone:false |
+---------+----------------------------+----------------------------+------------------------+------------+-----------------+-------------------------+--------+---------+--------------+--------------------+----------------------------------------------------------------------------------------------+
1 row in set
References
View the historical CLB job information at the log stream level for the current tenant: DBA_OB_BALANCE_JOB_HISTORY
View the load balancing tasks at the log stream level for the current tenant:
View tablet-level load balancing tasks for the current tenant:
View the transfer partition tasks of the current tenant:
For operations related to Load balancing, see the Data Load Balancing section.