Overview
log_restore_concurrency specifies the concurrency level for log restore.
Note
Recovery worker threads are created only when a tenant or standby tenant is being restored.
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 that the adaptive log recovery parallelism of OceanBase AI Database is used. |
| 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
When adaptive log restore parallelism is used in OceanBase AI Database, the number of worker threads for log restore adapts to the value of the tenant's max_cpu parameter.
Configuration example
Set the concurrency for log restore to 5.
obclient> ALTER SYSTEM SET log_restore_concurrency = 5;