mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-09 01:58:42 +00:00
Merge pull request #9223 from jumpserver/pr@v3@perf_sentinel_ssl_conf
perf: 优化Sentinels配置参数
This commit is contained in:
commit
bc45a8d207
@ -343,9 +343,9 @@ if REDIS_SENTINEL_SERVICE_NAME and REDIS_SENTINELS:
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
if REDIS_USE_SSL:
|
if REDIS_USE_SSL:
|
||||||
REDIS_OPTIONS['CONNECTION_POOL_KWARGS'].update({
|
CONNECTION_POOL_KWARGS = REDIS_OPTIONS['CONNECTION_POOL_KWARGS']
|
||||||
'connection_class': SentinelManagedSSLConnection
|
CONNECTION_POOL_KWARGS['connection_class'] = SentinelManagedSSLConnection
|
||||||
})
|
REDIS_OPTIONS['CONNECTION_POOL_KWARGS'] = CONNECTION_POOL_KWARGS
|
||||||
DJANGO_REDIS_CONNECTION_FACTORY = 'django_redis.pool.SentinelConnectionFactory'
|
DJANGO_REDIS_CONNECTION_FACTORY = 'django_redis.pool.SentinelConnectionFactory'
|
||||||
else:
|
else:
|
||||||
REDIS_LOCATION_NO_DB = '%(protocol)s://:%(password)s@%(host)s:%(port)s/{}' % {
|
REDIS_LOCATION_NO_DB = '%(protocol)s://:%(password)s@%(host)s:%(port)s/{}' % {
|
||||||
|
Loading…
Reference in New Issue
Block a user