Note
- OceanBase Database V4.x does not support configuration of thread resources by task type due to limited thread resources. This parameter has been deprecated since OceanBase Database V4.0.0.
- In OceanBase Database V4.x, you can use the tenant-level parameter
compaction_low_thread_scoreto specify the weight of the CPU time slice occupied by the worker threads for low-priority compaction tasks. For more information about the parameter, see compaction_low_thread_score.
Description
merge_thread_count specifies the number of worker threads for the daily compaction.
Limitations
Query the parameter
In the
systenant or a user tenant, you can execute theSHOW PARAMETERSstatement to query the parameter or query theGV$OB_PARAMETERSview for the parameter.Modify the parameter
You can modify the parameter only in the
systenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Integer |
| Default value | 0 |
| Value range | [0, 256] |
| 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
If this parameter is set to 0, the formula for calculating the number of worker threads for a compaction is min{10,cpu_cnt}, where cpu_cnt indicates the number of CPU cores in the system.
Examples
obclient> ALTER SYSTEM SET merge_thread_count=100;