Note
This view is available starting with V4.2.0.
Overview
Displays all current load balancing tasks being executed by tenants.
Columns
Column |
Type |
Is NULL |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID.
|
| TASK_ID | bigint(20) | NO | Load balancing task ID |
| CREATE_TIME | timestamp(6) | YES | Created At |
| MODIFY_TIME | timestamp(6) | YES | Information Update Time |
| TASK_TYPE | varchar(64) | NO | The task type.
|
| SRC_LS | bigint(20) | NO | Source log stream (the log data stream generated by 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 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 | The balancing strategy corresponding to the balance task:
NoteFor V4.2.x, this field is available starting with V4.2.4; for V4.3.x, it is available starting with V4.3.2. |
Sample query
View all current load balancing tasks being executed by tenants.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_BALANCE_TASKS\G
The query result is as follows:
*************************** 1. row ***************************
TENANT_ID: 1002
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 (Task) at the log stream level for all tenants: CDB_OB_BALANCE_TASK_HISTORY
View the load balancing jobs at the log stream level for all tenants:
View load balancing tasks at the tablet level for all tenants:
View all tenant transfer partition tasks:
For more information about data load balancing, see Data load balancing.
