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 number of threads for log restore.
Note
Log restore threads are created only during the restore of a primary or standby tenant.
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 that the adaptive log restore concurrency of OceanBase Database is used.
NoteStarting from V4.2.0, the default value of this parameter is changed from 1 to 0. |
| Value range | [0, 100]
NoteStarting from V4.2.0, the value range of this parameter is changed from [1, 100] to [0, 100]. |
| 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 of OceanBase Database is used, the number of log restore threads is adaptive to the max_cpu value of the tenant.
Examples
Set the log restore concurrency to 5.
obclient> ALTER SYSTEM SET log_restore_concurrency = 5;
