From 09588e69d3962fe08e350e0dde67e2f28dde4d43 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Mon, 21 Nov 2016 13:49:01 +0100 Subject: [PATCH] Log dead rows in koschei cleanup cronjob --- roles/koschei/backend/templates/cron-db-cleanup.j2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/koschei/backend/templates/cron-db-cleanup.j2 b/roles/koschei/backend/templates/cron-db-cleanup.j2 index 6a870363fe..2ff33b8f01 100644 --- a/roles/koschei/backend/templates/cron-db-cleanup.j2 +++ b/roles/koschei/backend/templates/cron-db-cleanup.j2 @@ -1,5 +1,4 @@ SHELL=/bin/bash MAILTO=sysadmin-koschei-members@fedoraproject.org 0 3 * * * koschei koschei-admin cleanup --older-than 6 >/dev/null -#0 4,10,16,22 * * * koschei psql -h {{ koschei_pgsql_hostname }} -d koschei -U koscheiadmin <<< 'VACUUM ANALYZE package; VACUUM FULL ANALYZE package;' -*/5 * * * * koschei psql -h {{ koschei_pgsql_hostname }} -d koschei -U koscheiadmin <<< 'VACUUM ANALYZE package' >/dev/null +*/5 * * * * koschei koschei-admin psql <<< 'VACUUM FULL ANALYZE VERBOSE package' 2>&1 | awk '/DETAIL/{print$2}' > /var/log/vaccum.log