Tuesday, November 21, 2017

Re: How to use channels and make a site highly available?

Right now Sentinel is the only Redis way, we have it set to a few seconds' timeout for failover at work I believe. We can't give a magical solution as any zero-downtime solution ends up being very project-specific; you'll need to build on top of Channels to make your own one if you absolutely need that.

Andrew

On Tue, Nov 21, 2017 at 9:05 AM, Sergey Pashinin <sergeypashinin@gmail.com> wrote:
Channels recommends using Redis.
I thought I will setup Redis Cluster (https://redis.io/topics/cluster-tutorial) behind HAProxy and it will be all fine.
But Channels does not support working with Redis Cluster - https://github.com/django/channels/issues/485.

Then I was looking at Redis Sentinel - seriously? One more process, a timeout to detect master failure - then make another one a master.. and all that time is downtime? And it's ok if it works correctly at least.


People say different things about RabbitMQ and it's cluster. Personally I am already tired to make it work inside Docker right now (still stops at random times and lost connections and so on)


What is a recommended way to make a site with Django channels work without a downtime? (And without loosing user sessions if 1 node fails)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/33d98ea2-2388-41be-b4e5-f908fd6792e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFwN1uov9NWf%3Dey64UgKw%3DOjx9nux7zeTaAVWRMYAwRDxi3X%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment