From b4ea2a7bcd07f9ebe6d68b62c57be2f671a9fbda Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 22 Jan 2014 16:06:41 +0000 Subject: [PATCH] Cache settings for the fmn backend. --- roles/notifs-backend/templates/fmn.consumer.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/notifs-backend/templates/fmn.consumer.py b/roles/notifs-backend/templates/fmn.consumer.py index 29548795da..a458ee6a77 100644 --- a/roles/notifs-backend/templates/fmn.consumer.py +++ b/roles/notifs-backend/templates/fmn.consumer.py @@ -22,6 +22,18 @@ config = { "fmn.consumer.enabled": True, "fmn.sqlalchemy.uri": "postgresql://${notifs_db_user}:${notifs_db_password}@db-notifs/notifications", + # Some configuration for the rule processors + "fmn.rules.utils.use_pkgdb2": False, + "fmn.rules.utils.pkgdb2_api_url": "http://209.132.184.188/api/", + "fmn.rules.cache": { + "backend": "dogpile.cache.dbm", + "expiration_time": 300, + "arguments": { + "filename": "/var/tmp/fmn-cache.dbm", + }, + }, + + ## Backend stuff ## # Email "fmn.email.mailserver": "bastion01.phx2.fedoraproject.org:25",