Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add database log expiry back to housekeeping.
Clean up database log entries with a daily housekeeping task. For now, we're keeping 2 weeks worth of log entries, but we also have a max number of rows allowed (10K/day = 140K rows). While this sounds like a lot, it shouldn't have a major impact on database size--probably adding up to about 25MiB to the DB size (and about 8MiB for indices). These values may be adjusted in the future, as we get a better feel for log message representation within these limits. Also, we may modify the expiry algorithm to preferentially expire logging from certain "less-important" applications (i.e. adding a 1wk expiry for mythcommflag/mythpreviewgen logging or similar). However, this implementation is a good start and will prevent unbounded growth of DB logs.
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters