Pankaj
Pankaj

Reputation: 2558

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 file increases. I need to deleted my log file(backup) frequently to prevent this. What is the best practice to avoid this.

Regards, Pankaj

Upvotes: 0

Views: 128

Answers (1)

changelog
changelog

Reputation: 4681

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.

Upvotes: 2

Related Questions