Re: [django-channels] Running multiple daphne servers

2018-02-19 Thread Tomáš Ehrlich
Ah, problem solved. This line forces db=0 in asgi_redis 1.x: https://github.com/django/channels_redis/blob/1.x/asgi_redis/core.py#L566 in 2.x version it seems to be fixed. Thanks again! :) > 19. 2. 2018 v 21:02, Tomáš

Re: [django-channels] Running multiple daphne servers

2018-02-19 Thread Tomáš Ehrlich
You’re absolutely right, using different prefix solves the problem. asgi_redis seems to be ignoring my connection_kwargs where I set the db. Connection_kwargs should be set like this, right? REDIS = { "hosts": [(os.environ.get('REDIS_HOST'), 6379)], "connection_kwargs": { "db":

Re: [django-channels] Running multiple daphne servers

2018-02-19 Thread Andrew Godwin
Presuming you are using Channels/Daphne 1, then the channel layer configuration is what determines what handles the requests. If you're seeing environments answer each other's requests, check they really are using different Redis databases, and consider changing the prefix setting on the channel