Skip to content

Resolve global cluster topology via DNS SRV records #2175

Closed

Description

@huanghaoyuanhhy

Problem

Global cluster clients currently discover topology by calling the global endpoint directly. This couples availability to one endpoint and makes topology recovery vulnerable to slow or partially replicated seed servers. Topology updates also need a strict no-rollback guarantee across initial discovery, periodic refresh, and UNAVAILABLE-triggered recovery.

Expected behavior

  • Discover ha-manager seed servers through the _grpc._tcp.<hostname> DNS SRV record set.
  • Select seeds by priority and weight without repeatedly probing duplicate host/port targets.
  • Probe concurrently, return the first successful initial answer, and bound cached-version refresh waits with a grace deadline.
  • Continue draining late answers in the background and install only strictly newer topology versions.
  • Retry transient and mixed seed failures, while failing fast on authentication errors and consistent API rejection.
  • Preserve telemetry lifecycle semantics during initial construction, primary swaps, and useDatabase() adoption.
  • Normalize primary connection addresses using scheme-aware default ports.

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions