开发者

Performance of rails app goes down due to log

开发者 https://www.devze.com 2023-02-27 11:43 出处:网络
I have a rails app, where the speed of the application reduces significantly as the size of the log fil开发者_运维技巧e increases. I need to deleted my log file(backup) frequently to prevent this. Wha

I have a rails app, where the speed of the application reduces significantly as the size of the log fil开发者_运维技巧e increases. I need to deleted my log file(backup) frequently to prevent this. What is the best practice to avoid this.

Regards, Pankaj


On a production environment, the ideal is to set logrotate rules for those logs (preferably daily).

We do it and never had performance issues due to logs.

Here's a brief article on how to use it.

0

精彩评论

暂无评论...
验证码 换一张
取 消