log_file_percentage specifies the maximum percentage of available space occupied by OceanBase Database Proxy (ODP) log files. Log files are cleared when the space occupied by log files exceeds min(log_dir_size_threshold, available space of the log directory × log_file_percentage). The value 0 specifies to ignore this limitation.
| Attribute | Description |
|---|---|
| Parameter type | Integer |
| Default value | 80 |
| Value range | [0, 100] |
| Effective upon ODP restart | No |
For more information about the log_dir_size_threshold parameter, see log_dir_size_threshold.
Examples
Assume that the available space of the log directory is 80 GB and log_dir_size_threshold is set to 64G.
Set the maximum percentage of available space occupied by ODP log files to 90%.
alter proxyconfig set log_file_percentage=90%;Based on the calculation rule, the maximum available space occupied by ODP log files is min(64 GB, 80 GB × 90%) = 64 GB.
Set the maximum percentage of available space occupied by ODP log files to 70%.
alter proxyconfig set log_file_percentage=70%;Based on the calculation rule, the maximum available space occupied by ODP log files is min(64 GB, 80 GB × 70%) = 56 GB.