Skip to content

Commit

Permalink
backend, dist-git, frontend, keygen: keep logs 6 weeks instead of 13
Browse files Browse the repository at this point in the history
The log files consume a lot of storage (7G Fedora Copr backend).  We
probably never analyzed older logs than 6 weeks, so lets shorten the
"keep" period.

Fixes: fedora-copr#2944
  • Loading branch information
praiskup committed Jan 17, 2024
1 parent 3b68ad1 commit 18f9bcc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions backend/conf/logrotate/copr-backend
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/var/log/copr-backend/*.log {
weekly
rotate 13
rotate 6
copytruncate
compress
notifempty
Expand All @@ -12,7 +12,7 @@

/var/log/copr-backend/workers/worker-*.log {
weekly
rotate 13
rotate 6
copytruncate
compress
notifempty
Expand Down
2 changes: 1 addition & 1 deletion dist-git/conf/logrotate
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/var/log/copr-dist-git/*.log {
weekly
rotate 13
rotate 6
copytruncate
compress
notifempty
Expand Down
2 changes: 1 addition & 1 deletion frontend/conf/logrotate
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/var/log/copr-frontend/*.log {
weekly
rotate 13
rotate 6
copytruncate
compress
notifempty
Expand Down
2 changes: 1 addition & 1 deletion keygen/configs/logrotate
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/var/log/copr-keygen/*.log {
weekly
rotate 13
rotate 6
copytruncate
compress
notifempty
Expand Down

0 comments on commit 18f9bcc

Please sign in to comment.