Note
- The scope of this parameter is adjusted to the tenant level starting from V4.1.0.
- This parameter is available starting with V2.2.50.
Description
log_restore_concurrency specifies the concurrency level of log restore.
Note
Log restore threads are created only when a tenant or a standby tenant is restored.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 0, which indicates to use the adaptive log restore concurrency level of OceanBase Database
NoteThe default value of this parameter is changed from 1 to 0 starting from V4.2.0. |
| Value range | [0,100]
NoteThe value range of this parameter is changed from [1,100] to [0,100] starting from V4.2.0. |
| 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
When the adaptive log restore concurrency level of OceanBase Database is used, the number of log restore threads is adaptive to the max_cpu value of the tenant.
Examples
Set the concurrency level of log restore to 5.
obclient> ALTER SYSTEM SET log_restore_concurrency = 5;