dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.3k stars 9.96k forks source link

Issue with SignalR scale using redis backplane in sentinel mode (HA) #46832

Open kresimirfijacko opened 1 year ago

kresimirfijacko commented 1 year ago

I am trying to scale application that uses signalr with redis backplane in sentinel mode.

I don't even know if that is possible, but here are details: asp.net core 6 Microsoft.AspNetCore.SignalR.StackExchangeRedis 6.0.2.

If i connect directly to master with: "rds01:6379" i can see program working as expected, that means that redis-cli with 'monitor' and 'pubsub channels' works as expected and i can see a list of subscribers there

If i connect in sentinel mode with: "adress-public:26379" ServiceName = "idp"

which triggers to sentinel mode according to stackexchange documentation, i don't see anything with redis-cli like before, 'pubsub channels' gives me just "xxx___Booksleeve_MasterChanged" channel, but no hub channels like before so the whole thing doesn't work as expected

what am i missing here?

BrennanConroy commented 1 year ago

@mgravell, I'm not very familiar with sentinel mode, any thoughts here?

uciprian commented 1 year ago

Check out whether redis sentinel support has been added in stack exchange redis library, for sure in v1 is not supported