From f0ae0d06c7cf92844e556fe90753b6cc26d81dad Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 2 Jul 2019 21:40:12 -0400 Subject: [PATCH] Switch to 2 Redis databases Signed-off-by: Roberto Rosario --- docker/Dockerfile | 5 +++-- mayan/apps/platform/classes.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 1e22a8aac2..46960ee874 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -57,8 +57,9 @@ apt-get update \ && echo "maxmemory-policy allkeys-lru" >> /etc/redis/redis.conf \ # Disable saving the Redis database echo "save \"\"" >> /etc/redis/redis.conf \ -# Only provision 1 database -&& echo "databases 1" >> /etc/redis/redis.conf +# Only provision 2 database. One for the broker and the other for +# results +&& echo "databases 2" >> /etc/redis/redis.conf #### diff --git a/mayan/apps/platform/classes.py b/mayan/apps/platform/classes.py index 384dfa2fb9..0f470d93ae 100644 --- a/mayan/apps/platform/classes.py +++ b/mayan/apps/platform/classes.py @@ -108,7 +108,7 @@ class PlatformTemplate(object): class PlatformTemplateSupervisord(PlatformTemplate): context_defaults = { 'BROKER_URL': 'redis://127.0.0.1:6379/0', - 'CELERY_RESULT_BACKEND': 'redis://127.0.0.1:6379/0', + 'CELERY_RESULT_BACKEND': 'redis://127.0.0.1:6379/1', } label = _('Template for Supervisord.') name = 'supervisord'