Note
The effective scope of this parameter has been changed to the tenant level since OceanBase Database V4.1.0.
Description
log_restore_concurrency specifies the number of logs that can be restored concurrently.
Note
The restore worker thread is created only when you restore a tenant or a standby tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Integer |
| Default value | 0, which indicates that the concurrency of log restore changes adaptively in OceanBase Database.
NoteThe default value of this parameter has been changed from |
| Value range | [0, 100]
NoteThe value range of this parameter has been changed from [1, 100] to [0, 100] since OceanBase Database V4.2.0. |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No |
Considerations
When you use adaptive log restore concurrency of OceanBase Database, the adaptive value for the number of log restore worker threads is the same as the max_cpu value of the tenant.
Example
obclient> ALTER SYSTEM SET log_restore_concurrency = 5;