mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
ejabberd_logger: Avoid excessive stat calls
By default, the logger_std_h module shipped with OTP 21.0 and newer reads the log file information prior to each and every write operation. This is done to play well with external log rotation tools. In order to minimize the performance penalty in situations where the log file is flooded, configure logger_std_h to skip reading the file information as long as no more than one second has passed since it was last read.
This commit is contained in:
parent
dbebcd08c7
commit
ec5f369d9d
@ -260,6 +260,7 @@ start(Level) ->
|
||||
Config = #{max_no_bytes => LogRotateSize,
|
||||
max_no_files => LogRotateCount,
|
||||
filesync_repeat_interval => no_repeat,
|
||||
file_check => 1000,
|
||||
sync_mode_qlen => 1000,
|
||||
drop_mode_qlen => 1000,
|
||||
flush_qlen => 5000},
|
||||
|
Loading…
Reference in New Issue
Block a user