Skip to content

Support DNS Caching #84

@armon

Description

@armon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementProposed improvement or new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions