mirror of https://github.com/jumpserver/jumpserver
perf: Optimize redis connection number
parent
4e33b5b478
commit
d185be2180
|
@ -204,6 +204,7 @@ class Config(dict):
|
|||
'REDIS_SSL_CERT': None,
|
||||
'REDIS_SSL_CA': None,
|
||||
'REDIS_SSL_REQUIRED': 'none',
|
||||
'REDIS_MAX_CONNECTIONS': 100,
|
||||
# Redis Sentinel
|
||||
'REDIS_SENTINEL_HOSTS': '',
|
||||
'REDIS_SENTINEL_PASSWORD': '',
|
||||
|
|
|
@ -373,7 +373,7 @@ REDIS_OPTIONS = {
|
|||
"health_check_interval": 30
|
||||
},
|
||||
"CONNECTION_POOL_KWARGS": {
|
||||
'max_connections': 100,
|
||||
'max_connections': CONFIG.REDIS_MAX_CONNECTIONS,
|
||||
}
|
||||
}
|
||||
if REDIS_USE_SSL:
|
||||
|
|
Loading…
Reference in New Issue