mirror of https://github.com/jumpserver/jumpserver
perf: 优化Sentinels配置参数
parent
a7815dc9e5
commit
55cee43f91
|
@ -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