【发布时间】:2020-03-07 13:42:10
【问题描述】:
运行 yugabyte db 一段时间后,我看到日志从未被删除。如何配置服务器以删除旧日志?
【问题讨论】:
标签: database distributed-database yugabyte-db
运行 yugabyte db 一段时间后,我看到日志从未被删除。如何配置服务器以删除旧日志?
【问题讨论】:
标签: database distributed-database yugabyte-db
目前 YugabyteDB 不提供自动删除旧日志的方法。 您可以通过在 crontab 中运行删除旧文件的 bash 脚本来实现此目的。
例子:
https://askubuntu.com/questions/589210/removing-files-older-than-7-days
Delete files older than specific date in linux
https://askubuntu.com/questions/413529/delete-files-older-than-one-year-on-linux
【讨论】: