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.
精彩评论