Note
For V4.0.0, this parameter is available starting with V4.0.0.
Description
ha_mid_thread_score specifies the number of current working threads for the mid-priority thread in high availability.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
The
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 0, indicating that the default number of working threads is 4 |
| Value range | [0, 100] |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
In V4.x, tasks related to high availability (HA), such as migration replication and backup and restore, are scheduled by the DagScheduler at the tenant level. Due to limited thread resources for each tenant, instead of differentiating parameters based on task types, three HA-related parameters are set based on task priority and importance. Each parameter corresponds to different task types:
ha_high_thread_score: specifies the number of threads for high-priority HA tasks, such as replication, rebuild, and restore.ha_mid_thread_score: specifies the number of threads for mid-priority HA tasks, such as migration.ha_low_thread_score: specifies the number of threads for low-priority HA tasks, such as backup, backup of backup, and backup cleanup.
Examples
Set the number of current working threads for the mid-priority thread in high availability to 10.
obclient> ALTER SYSTEM SET ha_mid_thread_score =10;