-
Notifications
You must be signed in to change notification settings - Fork 4.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
resolver: dns resolver does not allow to set the lookup frequency #2279
Comments
This has been discussed in #1663, and the decision is to not add a custom polling frequency. |
From #1663, your options here are to set max connection age or make a custom resolver that behaves the way you like. Note that the default DNS resolver will be changed soon to not poll at all. |
@dfawley Can you give more info about this one? |
gRPC in Java and C do not poll DNS; they only update when connection errors happen. We already update when connection errors happen, but we need to implement something to keep retrying if no addresses are returned. Once that happens, we will remove polling from our DNS resolver. |
It would be nice to have an option for the resolver builder to set the lookup frequency.
This can be useful when we are balancing grpc client connections in autoscaled environments.
Right now the default freq is set to 30 minutes (https://github.com/grpc/grpc-go/blob/master/resolver/dns/dns_resolver.go#L47) and there is no way to configure this value.
The text was updated successfully, but these errors were encountered: