Overview
Displays the current load balancing tasks being executed by the tenant. A tenant may have multiple load balancing tasks running concurrently, and these tasks all belong to the same load balancing job.
Columns
Column |
Type |
Is NULL |
Description |
|---|---|---|---|
| TASK_ID | bigint(20) | NO | Load balancing task ID |
| CREATE_TIME | timestamp(6) | YES | Creation Time |
| MODIFY_TIME | timestamp(6) | YES | Information Update Time |
| TASK_TYPE | varchar(64) | NO | Task type:
|
| SRC_LS | bigint(20) | NO | Source log stream (the log data stream generated from the data source) |
| DEST_LS | bigint(20) | NO | Destination log stream |
| PART_LIST | longtext | YES | Partition list, including: user table partitions and global index partitions |
| FINISHED_PART_LIST | longtext | YES | List of Partitions That Have Completed Load Balancing |
| PART_COUNT | bigint(20) | YES | Number of Partitions in the Partition List |
| FINISHED_PART_COUNT | bigint(20) | YES | Number of Partitions with Load Balancing Completed |
| LS_GROUP_ID | bigint(20) | NO | Log Stream Group ID |
| STATUS | varchar(64) | NO | Task status:
|
| PARENT_LIST | varchar(1024) | YES | Parent Task List |
| CHILD_LIST | varchar(1024) | YES | Subtask List |
| CURRENT_TRANSFER_TASK_ID | bigint(20) | NO | The ID of the transfer task triggered by the current load balancing task. |
| JOB_ID | bigint(20) | NO | Job ID of the current task |
| COMMENT | longtext | YES | Comments |
| BALANCE_STRATEGY | varchar(64) | YES | Balancing strategy corresponding to the balance task:
|
Sample query
View the current load balancing tasks being executed for this tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_BALANCE_TASKS\G
The query result is as follows:
*************************** 1. row ***************************
TASK_ID: 318280
CREATE_TIME: 2025-05-09 14:29:05.504906
MODIFY_TIME: 2025-05-09 14:29:07.535966
TASK_TYPE: LS_SPLIT
SRC_LS: 1001
DEST_LS: 1002
PART_LIST: 500002:500008,500002:500011,500002:500014
FINISHED_PART_LIST: NULL
PART_COUNT: 3
FINISHED_PART_COUNT: 0
LS_GROUP_ID: 1001
STATUS: TRANSFER
PARENT_LIST: NULL
CHILD_LIST: NULL
CURRENT_TRANSFER_TASK_ID: -1
JOB_ID: 318278
COMMENT:
BALANCE_STRATEGY: LS balance by expand
1 row in set
References
View the historical load balancing tasks at the log stream level for the current tenant: DBA_OB_BALANCE_TASK_HISTORY
View the load balancing jobs 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.