django / channels_redis

Redis channel layer backend for Django Channels
BSD 3-Clause "New" or "Revised" License
586 stars 197 forks source link

Unable to configure AWS elasticache redis with channel_redis #381

Open SanaZulfiqar opened 8 months ago

SanaZulfiqar commented 8 months ago

Hello, I am trying to use AWS Elasticache Redis cluster as backend with channels_redis for connecting to websocket. However, I am unable to configure that as container get restarted every time try making connection. It works well if i connect the single host redis instead of cluster one.

This is the configuration i am using:

CHANNEL_LAYERS = {
    "default": {
        "BACKEND": "channels_redis.core.RedisChannelLayer",
        "CONFIG": {
            "hosts": [("configration_endpoint", "port")],
            "capacity": 10_000,
            "prefix":  "channel-layer:",
        },
    },
}

Version of channels-redis:

channels==3.0.4
channels-redis==3.3.0

I am using uvicorn to run the channel.

sevdog commented 7 months ago

Could you please provide a stacktrace or a log which shows which the error?

Which kind of configuration are you using to run your project?