From f97e880fa662b308d43d562c729ac6c56ba634a0 Mon Sep 17 00:00:00 2001 From: Mathias Petermann Date: Wed, 23 Sep 2020 11:06:11 +0200 Subject: [PATCH] REDIS_PORT as integer, add hint about multiple redis databases --- docs/production/index.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/production/index.rst b/docs/production/index.rst index ade54c48..55752a95 100644 --- a/docs/production/index.rst +++ b/docs/production/index.rst @@ -388,12 +388,16 @@ To enable celery support, you must also have configuration values that tell Cele Here are the Celery configuration variables that should be set:: CELERY_RESULT_BACKEND = 'redis://your_redis_url:6379' - CELERY_BROKER_URL = 'redis://your_redis_url:6379' + CELERY_BROKER_URL = 'redis://your_redis_url:6379/0' CELERY_IMPORTS = ('lemur.common.celery') CELERY_TIMEZONE = 'UTC' REDIS_HOST="your_redis_url" - REDIS_PORT="6379" + REDIS_PORT=6379 + REDIS_DB=0 + +Out of the box, every Redis instance supports 16 databases. The default database (`REDIS_DB`) is set to 0, however, you can use any of the databases from 0-15. Via `redis.conf` more databases can be supported. +In the `redis://` url, the database number needs to be added with a slash after the port. Do not forget to import crontab module in your configuration file::