Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis Sentinel: The ConnectionMultiplexer is not a Sentinel connection. Detected as: Standalone error #2808

Open
CaglarMacha opened this issue Oct 24, 2024 · 0 comments

Comments

@CaglarMacha
Copy link

CaglarMacha commented Oct 24, 2024

Our project is a .NET 8 API project, and we are using StackExchange.Redis version 2.8.0 as a caching mechanism. However, we are randomly encountering an error that shows "Sentinel: The ConnectionMultiplexer is not a Sentinel connection. Detected as: Standalone," and sometimes we don't receive this error. I haven't been able to identify the cause of this issue. What steps should I follow to resolve this error? I am sharing our codes

 var redisConfigurationOptions = new ConfigurationOptions()
                {
                    EndPoints = { { redisConfiguration.SentinelUrl!, redisConfiguration.Port } },
                    Password = redisConfiguration.Password,
                    ServiceName = redisConfiguration.ServiceName,
                    AbortOnConnectFail = redisConfiguration.AbortOnConnectFail, 
                    ConnectRetry = redisConfiguration.ConnectRetry, 
                    ConnectTimeout = redisConfiguration.ConnectTimeout, 
                    ReconnectRetryPolicy = new LinearRetry(redisConfiguration.ReconnectRetry) 
                
                };
var redisClient = ConnectionMultiplexer.Connect(redisConfigurationOptions)```

And redisConfiguration.SentinelUrl = redissentineltest.ourproject.com redisConfiguration.Port = 26397
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant