increase per-channel capacity

* 100 is the default capacity for a channel. If the client doesn't read
the socket fast enough, websocket messages can and will be lost. This
increases the default to 10,000
This commit is contained in:
chris meyers
2020-02-21 10:05:31 -05:00
committed by Ryan Petrello
parent 0da94ada2b
commit b6b9802f9e
5 changed files with 15 additions and 4 deletions

View File

@@ -16,7 +16,10 @@ BROKER_URL = 'redis://{}:{}/'.format(
CHANNEL_LAYERS = {
'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {'hosts': [("{{ redis_hostname }}", {{ redis_port|int }})]}}
'CONFIG': {
'hosts': [("{{ redis_hostname }}", {{ redis_port|int }})],
'capacity': 10000,
}}
}
CACHES = {