Skip to content

Enable support for redis sentinal #103

@killermoehre

Description

@killermoehre

redis sentinel is a fairly easy way to make redis high available.

django-cacheops has actual inbuilt support for this operation mode.

CACHEOPS_SENTINEL = {
    'locations': [('localhost', 26379)], # sentinel locations, required
    'service_name': 'mymaster',          # sentinel service name, required
    'socket_timeout': 0.1,               # connection timeout in seconds, optional
    'db': 0                              # redis database, default: 0
    ...                                  # everything else is passed to Sentinel()
}

Can this be implemented as well? Probably somewhere in /b3lb/loadbalancer/settings.py.

Or is a HA redis not necessary for b3lb?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions