Overview
ttl_thread_score specifies the weight value for the thread time slice used by the TTL task.
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 indicates to use the default number of threads, which is 2. |
| Value range | [0,100] |
| Modifiable | Yes, you can use the following methods:ALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
You can adjust the weight of the TTL DAG thread to modify the time slice ratio of threads used by the TTL task. If you find that the TTL task is running too slowly, you can appropriately increase the value of ttl_thread_score. It is recommended to double the value with each adjustment.
Configuration example
The sys tenant sets the weight value for thread time slices used by TTL tasks in all user tenants to 4.
obclient> ALTER SYSTEM SET ttl_thread_score = 4 tenant = all_user;