[fix](log) Support fe log rollover size strategy (#34446)

This commit is contained in:
deardeng
2024-05-09 20:54:53 +08:00
committed by morningman
parent db3bbc2437
commit f94222a04e
2 changed files with 102 additions and 76 deletions

View File

@ -2599,6 +2599,12 @@ public class Config extends ConfigBase {
//==========================================================================
// begin of cloud config
//==========================================================================
@ConfField(description = {"是否启用FE 日志文件按照大小删除策略,当日志大小超过指定大小,删除相关的log。默认为按照时间策略删除",
"Whether to enable the FE log file deletion policy based on size, "
+ "where logs exceeding the specified size are deleted. "
+ "It is disabled by default and follows a time-based deletion policy."},
options = {"age", "size"})
public static String log_rollover_strategy = "age";
@ConfField public static int info_sys_accumulated_file_size = 4;
@ConfField public static int warn_sys_accumulated_file_size = 2;