-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Using Redis with sentinels #11617
Comments
Yes, just saw this issue about sentinel support dotnet/aspnetcore#28367 Okay, can you start a PR so that we could track the suggestion? At least we would need to differentiate the InstanceName with the tenant name (an empty string for the Default tenant/shell) as done in RedisCacheOptionsSetup
Maybe keep the Hmm, what we could do is to introduce an What do you think ;) |
Thank you for your answer.
We should create it twice such as
Or we can change
and use it like:
What do you think? |
Can you try
|
Looks like Clone is not work as expected. |
Maybe will be better use public string Configuration { get; set; } as in ```Microsoft.Extensions.Caching.StackExchangeRedis.RedisCacheOptions```` |
Okay, maybe a not so deep clone, thanks for trying it. Will see tomorrow. Hmm maybe the 2 parsings solution in the main Redis feature startup ConfigureServices(), where we are sure that both are only executed in this ConfigureServices() when building the tenant container. |
Okay, so for me your best suggestion is to just add the 2 following lines.
And then just use Would you like to suggest a PR? |
I think that
is better, because |
Okay I got it, will take a look at the PR, thanks |
We use Redis distributed cache with 3 sentinels:
1Master + 1 sentinel in first PC
1Replica + 2 sentinels in second PC
Connection configuration:
For using this configuration, we use main branch https://github.com/StackExchange/StackExchange.Redis (previous versions, include last release [2.5.61], throw error about getting information about replica).
Steps to reproduce the behavior:
How it works in code:
My propose:
RedisCacheOptions and RedisOption should be distinct.
In this case all works as expected.
The text was updated successfully, but these errors were encountered: