From 0fb6fd7f04fbcaa59b5d430581c0355e16cf6e68 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Wed, 16 Nov 2016 17:29:14 +0100 Subject: [PATCH] Adjust koschei priority persistence and vacuum --- roles/koschei/backend/templates/config-backend.cfg.j2 | 3 +++ roles/koschei/backend/templates/cron-db-cleanup.j2 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/koschei/backend/templates/config-backend.cfg.j2 b/roles/koschei/backend/templates/config-backend.cfg.j2 index ed48dd3e56..479d2c1935 100644 --- a/roles/koschei/backend/templates/config-backend.cfg.j2 +++ b/roles/koschei/backend/templates/config-backend.cfg.j2 @@ -76,6 +76,9 @@ config = { "memory_limit": 4 * 1024**3, }, }, + "priorities": { + "calculation_interval": 600, # seconds + }, "logging": { "loggers": { "": { diff --git a/roles/koschei/backend/templates/cron-db-cleanup.j2 b/roles/koschei/backend/templates/cron-db-cleanup.j2 index d5238a9af1..6a870363fe 100644 --- a/roles/koschei/backend/templates/cron-db-cleanup.j2 +++ b/roles/koschei/backend/templates/cron-db-cleanup.j2 @@ -2,4 +2,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;' -*/15 * * * * koschei psql -h {{ koschei_pgsql_hostname }} -d koschei -U koscheiadmin <<< 'VACUUM ANALYZE package' >/dev/null +*/5 * * * * koschei psql -h {{ koschei_pgsql_hostname }} -d koschei -U koscheiadmin <<< 'VACUUM ANALYZE package' >/dev/null