Question

I have a django project which currently uses a redis cache both as my celery broker and as my regular cache. I like this setup because it solves 2 of my needs with 1 technology. However, recently I have been having trouble with redis crashes. The issue is that when redis goes down, my whole site ceases functioning because the tasks are extremely important.

So my question is, should I find another broker for my celery tasks, or is there a way I can get high availability out of redis?

Était-ce utile?

La solution

If "the tasks are extremely important" you should use RabbitMQ broker instead of Redis.

Autres conseils

You should check Redis Sentinel which is the official high availability solution for Redis (work in progress, actively developed though).

Depending on where your app is hosted at, you could use a hosted Redis provider that offers HA.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top