开发者

Performance of rails app goes down due to log

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜