We have some use cases where people want to hit DNS very hard, and in those cases some caching would be very useful. The 0 TTL default is sane, but does not scale well. Instead, support:
- dns_ttl: Set a TTL for DNS results (default 0, same behavior)
- dns_stale: Enable stale reads, allows for higher throughput / lower latency (default false, same behavior)
- dns_max_stale: Bound the maximum staleness. If the result is too old, retry on leader. (default like 1s).
We can provide these as a map, so that each different values can be provided on a per-service level. There will be some wildcard to set the default values for all services.
We have some use cases where people want to hit DNS very hard, and in those cases some caching would be very useful. The 0 TTL default is sane, but does not scale well. Instead, support:
We can provide these as a map, so that each different values can be provided on a per-service level. There will be some wildcard to set the default values for all services.