Note
- Starting from V4.1.0, the scope of this parameter is changed to the tenant level.
- This parameter is introduced in V2.2.50.
Description
log_archive_concurrency specifies the concurrency level of log archiving.
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 archiving concurrency level 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
The number of log archiving threads is calculated based on the adaptive value of the max_cpu parameter of the tenant. The calculation rules are as follows:
- If the
max_cpuvalue of the tenant is less than or equal to 8, the number of log archiving threads is equal to themax_cpuvalue. - If the
max_cpuvalue of the tenant is greater than 8 and less than 32, the number of log archiving threads is equal to themax_cpuvalue divided by 2, with a minimum value of 8. - If the
max_cpuvalue of the tenant is greater than 32, the number of log archiving threads is equal to themax_cpuvalue divided by 4, with a minimum value of 16.
Examples
The
systenant modifies the log archiving concurrency level of the MySQL tenant. The following example shows how to do this:obclient> ALTER SYSTEM SET log_archive_concurrency = 5 tenant = 'mysql';A MySQL tenant modifies its own log archiving concurrency level. The following example shows how to do this:
obclient> ALTER SYSTEM SET log_archive_concurrency = 5;
References
For more information about log archiving parameters, see View log archiving parameters.