Overview
ha_mid_thread_score specifies the number of worker threads for a priority thread in high availability mode.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 0: the default number of worker threads is 4. |
| Value range | [0, 100] |
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
Tasks related to high availability, such as migration replication and backup recovery, are scheduled and executed by the tenant-level DagScheduler. Considering the limited thread resources of each tenant, parameter configurations are no longer differentiated by specific task types. Instead, three high-availability-related parameters are set based on task priority and importance, with each parameter corresponding to different task types:
- ha_high_thread_score: The number of concurrent threads for high-priority and high-reliability task queues, such as replication, rebuild, and restore.
- ha_mid_thread_score: The number of concurrent threads for high-priority and reliable task queues, such as migration.
- ha_low_thread_score: The number of concurrent threads for low-priority, high-reliability task queues such as backup, backup of backups, and backup cleanup.
Configuration example
Set the current worker count for priority threads in high availability for this tenant to 10.
obclient> ALTER SYSTEM SET ha_mid_thread_score =10;