Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#927 Redis clustering, add missing SentinelC…
Browse files Browse the repository at this point in the history
…onnectionFactory
  • Loading branch information
rkorytkowski committed Aug 11, 2023
1 parent 6966a47 commit be15164
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@
# django cache
OPTIONS = {}
if REDIS_SENTINELS:
DJANGO_REDIS_CONNECTION_FACTORY = 'django_redis.pool.SentinelConnectionFactory'

for REDIS_SENTINEL in REDIS_SENTINELS.split(','):
SENTINEL = REDIS_SENTINEL.split(':')
REDIS_SENTINELS_LIST.append((SENTINEL[0], int(SENTINEL[1])))
Expand Down

0 comments on commit be15164

Please sign in to comment.