Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日志生成如何取消? #373

Open
U201413497 opened this issue Mar 14, 2024 · 1 comment
Open

日志生成如何取消? #373

U201413497 opened this issue Mar 14, 2024 · 1 comment

Comments

@U201413497
Copy link

用的scaleway的ipv6小鸡,就3G硬盘,装好节点后就剩300M。

看着仅存的硬盘慢慢被占用了,如何禁止日志文件生成?硬盘怕不够用了。

@jonssonyan
Copy link
Contributor

jonssonyan commented Mar 19, 2024

硬盘小了点,系统一共涉及到5个容器,可能不是日志的问题,看一下是那个容器磁盘占用比较多。日志之前处理过,第一,在docker里面设置了日志的文件最大大小,第二,使用了日志框架,只保留最近几天的日志文件,并且达到一定大小会自动打包压缩。
"log-opts":{
"max-size":"50m",
"max-file":"3"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants