summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2024-07-10 17:57:23 +1000
committerGitHub <noreply@github.com>2024-07-10 17:57:23 +1000
commite2f8fddc321c60cdac60dc672efd506f1ab64d08 (patch)
tree8ba08ef1cbf447d7482f07689ff759dd6114edcd
parent7bd628402dfe0f61d098ecc7b0156179739844c7 (diff)
fix(session): sentinel db index not respected upstream (#7514)
This reverts the usage of redis sentinel read balancing and just uses the active master for the connection. This avoids an issue where the db index is not respected due to an upstream bug. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
-rw-r--r--internal/session/provider_config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/session/provider_config.go b/internal/session/provider_config.go
index 7f611b773..3942d7661 100644
--- a/internal/session/provider_config.go
+++ b/internal/session/provider_config.go
@@ -121,7 +121,7 @@ func NewSessionProvider(config schema.Session, certPool *x509.CertPool) (name st
name = "redis-sentinel"
- provider, err = redis.NewFailoverCluster(redis.FailoverConfig{
+ provider, err = redis.NewFailover(redis.FailoverConfig{
Logger: logging.LoggerCtxPrintf(logrus.TraceLevel),
MasterName: config.Redis.HighAvailability.SentinelName,
SentinelAddrs: addrs,