[Improvement](log) add config to controll compression of fe log & fe audit log (#22865)
fe log is large for a busy doris cluster, if you want to preserve some historical logs, it cost too much disk space. enable compression is a good way to save space. and a gzip compressed text file can be viewed without decompression.
This commit is contained in:
@ -58,6 +58,9 @@ public class Config extends ConfigBase {
|
||||
* 10h 10 hours
|
||||
* 60m 60 mins
|
||||
* 120s 120 seconds
|
||||
*
|
||||
* sys_log_enable_compress:
|
||||
* default is false. if true, will compress fe.log & fe.warn.log by gzip
|
||||
*/
|
||||
@ConfField(description = {"FE 日志文件的存放路径,用于存放 fe.log。",
|
||||
"The path of the FE log file, used to store fe.log"})
|
||||
@ -93,6 +96,8 @@ public class Config extends ConfigBase {
|
||||
"The maximum survival time of the FE log file. After exceeding this time, the log file will be deleted. "
|
||||
+ "Supported formats include: 7d, 10h, 60m, 120s"})
|
||||
public static String sys_log_delete_age = "7d";
|
||||
@ConfField(description = {"是否压缩 FE 的历史日志", "enable compression for FE log file"})
|
||||
public static boolean sys_log_enable_compress = false;
|
||||
|
||||
@ConfField(description = {"FE 审计日志文件的存放路径,用于存放 fe.audit.log。",
|
||||
"The path of the FE audit log file, used to store fe.audit.log"})
|
||||
@ -118,6 +123,8 @@ public class Config extends ConfigBase {
|
||||
+ "After exceeding this time, the log file will be deleted. "
|
||||
+ "Supported formats include: 7d, 10h, 60m, 120s"})
|
||||
public static String audit_log_delete_age = "30d";
|
||||
@ConfField(description = {"是否压缩 FE 的 Audit 日志", "enable compression for FE audit log file"})
|
||||
public static boolean audit_log_enable_compress = false;
|
||||
|
||||
@ConfField(description = {"插件的安装目录", "The installation directory of the plugin"})
|
||||
public static String plugin_dir = System.getenv("DORIS_HOME") + "/plugins";
|
||||
|
||||
Reference in New Issue
Block a user