Open killermoehre opened 1 year ago
Using redis for cacheops increases the overall performance of b3lb (less db query overhead). b3lb won't fail if redis is unavailable if the setting CACHEOPS_DEGRADE_ON_FAILURE
is set to true
(default). It is encouraged to use a local redis instance on each b3lb node for resilience against a redis SPoFs.
Although having no functional impact the accessibility of redis might lead to severe performance issues in high load environments. It should be possible to add configuration support (parsing JSON from a env variable?) for CACHEOPS_SENTINEL
.
redis sentinel
is a fairly easy way to makeredis
high available.django-cacheops
has actual inbuilt support for this operation mode.Can this be implemented as well? Probably somewhere in /b3lb/loadbalancer/settings.py.
Or is a HA redis not necessary for b3lb?