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

Strange new message about multiple service endpoints #4335

Closed
johnkwaters opened this issue Mar 13, 2019 · 5 comments
Closed

Strange new message about multiple service endpoints #4335

johnkwaters opened this issue Mar 13, 2019 · 5 comments

Comments

@johnkwaters
Copy link

Just noticed this in the log output, this is new:

Microsoft.Azure.SignalR.ServiceEndpointManager[1]
2 endpoints to https://northstardevsignalr.service.signalr.net found, use the one https://northstardevsignalr.service.signalr.net

Using Azure SignalR - what gives?

@halter73
Copy link
Member

halter73 commented Mar 13, 2019

@chenkennt ideas? Could this be caused by the new multi-instance (sharding) SDK updates?

@chenkennt
Copy link

Yes, we just changed the way how connection strings are read from configuration to support multiple instances. The most probable reason you see this is that you have two Azure_SignalR_ConnectionString in configuration (for example, one in env variable, one in app settings).

With this multiple instance support you'll be able to connect multiple SignalR instances together to handle more connections. Some docs can be found here:
https://github.com/Azure/azure-signalr/blob/dev/docs/sharding.md

/cc @vicancy

@johnkwaters
Copy link
Author

I have narrowed it down further. I only have one connection string (if I change it's name, AddAzureSignalR throws the appropriate exception for a missing connection string).
But: I do AddSignalR when configuring DI:

services.AddSignalR().AddAzureSignalR().AddJsonProtocol( options => { options.PayloadSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; });
And later, UseSignalR when configuring the HTTP pipeline:

app.UseAzureSignalR(routes => { routes.MapHub<StopsHub>("/stops"); });

This is when I get that warning.

Should one no longer do Add and Use like this?

@vicancy
Copy link
Contributor

vicancy commented Mar 18, 2019

Hi @johnkwaters Thanks for reporting this, we will fix it. Created Azure/azure-signalr#439 to track it.

@analogrelay
Copy link
Contributor

Closing this as the issue is in the Azure SignalR Service SDK. See the linked issue for more details on the progress!

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

5 participants