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