Setu-TS
    Preparing search index...

    Interface SrvDnsDiscoveryOptions

    The 'dns' arm in SRV mode — records carry their own ports.

    interface SrvDnsDiscoveryOptions {
        cacheTtlMs?: number;
        domainTemplate?: string;
        ejection?: false | EjectionOptions;
        mode: "srv";
        provider: "dns";
        secure?: boolean;
        selfRegistration?: SelfRegistration;
        strategy?: LoadBalanceStrategy;
        watchIntervalMs?: number;
    }

    Hierarchy

    • DnsDiscoveryCommon
      • SrvDnsDiscoveryOptions
    Index
    cacheTtlMs?: number

    Milliseconds a resolved instance list is served from cache.

    0 disables caching so every resolve hits the backend. A watched service invalidates its own entry on every change, so this is a safety net rather than the primary freshness mechanism.

    domainTemplate?: string

    {service} is replaced with the requested name.

    ejection?: false | EjectionOptions

    Outlier-ejection tuning, or false to disable ejection entirely.

    mode: "srv"

    Query SRV records and honor RFC 2782 priority tiers.

    provider: "dns"

    Discriminant.

    secure?: boolean

    Whether resolved instances speak TLS.

    selfRegistration?: SelfRegistration

    Advertise this instance to the backend (Consul only).

    Default selection strategy; PickOptions.strategy overrides it per call.

    watchIntervalMs?: number

    Milliseconds between watch() polls — DNS has no push channel.