Note
This parameter is introduced since OceanBase Database V4.0.0.
Description
log_disk_percentage specifies the percentage of the total disk space occupied by redo logs.
Attributes
| Attribute | Description |
|---|---|
| Type | INT |
| Default value | 0 |
| Value range | [0, 99] |
| Modifiable | Yes. It can be modified using the ALTER SYSTEM SET statement. |
| Effective upon OBServer node restart | No |
Considerations
- This parameter takes effect only when you set
log_disk_sizeto 0. For more information aboutlog_disk_size, see log_disk_size. - If you set this parameter to 0, the system automatically calculates the percentage of the disk space occupied by redo logs based on whether the logs and data share the same disk.
- If a disk is shared, the percentage of the disk space occupied by redo logs is 30%, which indicates that 30% of the total disk space will be allocated.
- If a disk is exclusive for redo logs, the percentage of disk space occupied by redo logs is 90%, which indicates that 90% of the total disk space will be allocated.
Examples
obclient> ALTER SYSTEM SET log_disk_percentage=30;