From e478dbbf73ee274a77851ba7f0e67a09cc4a17a7 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mar 28 2021 11:15:34 +0000 Subject: backend, frontend, keygen, distgit: keep cca 3 months of logs We compress the rotated logs to avoid huge penalty in the storage, and even now it is on Fedora Copr backend less than 1G. Going with roughly 3-times more shouldn't hurt. --- diff --git a/backend/conf/logrotate/copr-backend b/backend/conf/logrotate/copr-backend index a6d78f0..47496d2 100644 --- a/backend/conf/logrotate/copr-backend +++ b/backend/conf/logrotate/copr-backend @@ -2,7 +2,7 @@ /var/log/copr-backend/*.log { weekly - rotate 5 + rotate 13 copytruncate compress notifempty @@ -12,7 +12,7 @@ /var/log/copr-backend/workers/worker-*.log { weekly - rotate 5 + rotate 13 copytruncate compress notifempty diff --git a/dist-git/conf/logrotate b/dist-git/conf/logrotate index b614f5c..6bfe7ab 100644 --- a/dist-git/conf/logrotate +++ b/dist-git/conf/logrotate @@ -2,7 +2,7 @@ /var/log/copr-dist-git/*.log { weekly - rotate 5 + rotate 13 copytruncate compress notifempty diff --git a/frontend/conf/logrotate b/frontend/conf/logrotate index 9249c29..e4accb3 100644 --- a/frontend/conf/logrotate +++ b/frontend/conf/logrotate @@ -2,7 +2,7 @@ /var/log/copr-frontend/*.log { weekly - rotate 5 + rotate 13 copytruncate compress notifempty diff --git a/keygen/configs/logrotate b/keygen/configs/logrotate index 17754dd..6e5d377 100644 --- a/keygen/configs/logrotate +++ b/keygen/configs/logrotate @@ -1,6 +1,6 @@ /var/log/copr-keygen/*.log { weekly - rotate 5 + rotate 13 copytruncate compress notifempty