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

Support dns load balancing? #530

Open
2 of 4 tasks
saber-wang opened this issue Dec 13, 2022 · 0 comments
Open
2 of 4 tasks

Support dns load balancing? #530

saber-wang opened this issue Dec 13, 2022 · 0 comments

Comments

@saber-wang
Copy link

saber-wang commented Dec 13, 2022

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • Question or discussion
  • Bug
  • Requirement
  • Feature or performance improvement

Question

The code here blocks DNS settings

{
var servers = config.Servers.Split(',').ToArray();
for (int i = 0; i < servers.Length; i++)
{
if (!servers[i].StartsWith("http://", StringComparison.InvariantCultureIgnoreCase)
&& !servers[i].StartsWith("https://", StringComparison.InvariantCultureIgnoreCase))
{
servers[i] = $"http://{servers[i]}";
}
}
return servers;

Documentation on DNS Load Balancing:
https://learn.microsoft.com/en-us/aspnet/core/grpc/loadbalancing?view=aspnetcore-7.0

@saber-wang saber-wang changed the title Support GRPC DNS client load balancing? Support dns load balancing? Dec 13, 2022
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