mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
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:
parent
0da94ada2b
commit
b6b9802f9e
@ -957,6 +957,7 @@ CHANNEL_LAYERS = {
|
||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||
"CONFIG": {
|
||||
"hosts": [("localhost", 6379)],
|
||||
"capacity": 10000,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -60,7 +60,8 @@ CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||
"CONFIG": {
|
||||
"hosts": [(redis_parts.hostname, redis_parts.port)]
|
||||
"hosts": [(redis_parts.hostname, redis_parts.port)],
|
||||
"capacity": 10000,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -91,7 +91,10 @@ BROKER_URL = 'redis://{}:{}'.format(
|
||||
|
||||
CHANNEL_LAYERS = {
|
||||
'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer',
|
||||
'CONFIG': {'hosts': [(os.getenv("REDIS_HOST", None), int(os.getenv("REDIS_PORT", 6379)))]}}
|
||||
'CONFIG': {
|
||||
'hosts': [(os.getenv("REDIS_HOST", None), int(os.getenv("REDIS_PORT", 6379)))]
|
||||
'capacity': 10000,
|
||||
}}
|
||||
}
|
||||
|
||||
USE_X_FORWARDED_PORT = True
|
||||
|
||||
@ -19,5 +19,8 @@ BROKER_URL = 'redis://{}:{}/'.format(
|
||||
|
||||
CHANNEL_LAYERS = {
|
||||
'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer',
|
||||
'CONFIG': {'hosts': [("{{ kubernetes_redis_hostname }}", {{ kubernetes_redis_port|int }})]}}
|
||||
'CONFIG': {
|
||||
'hosts': [("{{ kubernetes_redis_hostname }}", {{ kubernetes_redis_port|int }})],
|
||||
'capacity': 10000,
|
||||
}}
|
||||
}
|
||||
|
||||
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user