From 16d9c7d074d34d57bee42e0e38cf5c5f43e69798 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 16 Nov 2019 13:45:36 -0400 Subject: [PATCH] Update docs and template to use 2 Redis databases Switch default installation to use two Redis databases. One for the message broker, and the other to store task results. Signed-off-by: Roberto Rosario --- HISTORY.rst | 3 +++ docs/chapters/deploying.rst | 2 +- mayan/apps/platform/classes.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index e1d97c0ada..b77a7bf06a 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -176,6 +176,9 @@ to John Bentley (@johnbentleyii) for the report. - Add missing Event class cache invalidation when calling the refresh() method. +- Switch default installation to use two Redis + databases. One for the message broker, and the + other to store task results. 3.2.9 (2019-11-03) ================== diff --git a/docs/chapters/deploying.rst b/docs/chapters/deploying.rst index 25722b06aa..f34a8ae6cd 100644 --- a/docs/chapters/deploying.rst +++ b/docs/chapters/deploying.rst @@ -160,7 +160,7 @@ For another setup that offers more performance and scalability refer to the sudo echo "maxmemory-policy allkeys-lru" >> /etc/redis/redis.conf sudo echo "save \"\"" >> /etc/redis/redis.conf - sudo echo "databases 1" >> /etc/redis/redis.conf + sudo echo "databases 2" >> /etc/redis/redis.conf sudo systemctl restart redis 13. Enable and restart the services [1_]: diff --git a/mayan/apps/platform/classes.py b/mayan/apps/platform/classes.py index ef40045eb7..c09e02ede6 100644 --- a/mayan/apps/platform/classes.py +++ b/mayan/apps/platform/classes.py @@ -155,7 +155,7 @@ class PlatformTemplateSupervisord(PlatformTemplate): ), YAMLVariable( name='CELERY_RESULT_BACKEND', - default='redis://127.0.0.1:6379/0', + default='redis://127.0.0.1:6379/1', environment_name='MAYAN_CELERY_RESULT_BACKEND' ), YAMLVariable(