pingcap / pingcap/tidb-operator

Optimization for DNS queries

Open
#3,121 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/controller status/help-wanted
Dominant language
Go
Stars
1.3k
Forks
540
Avg merge
3d 2h
Merged PRs (30d)
18

Description

Feature Request

Is your feature request related to a problem? Please describe:

Currently, the addresses set for the components are like ns0-tikv-0.ns0-tikv-peer.ns0.svc, and the /etc/resolv.conf in the Pod is:

nameserver 10.233.0.10
search ns0.svc.cluster.local svc.cluster.local cluster.local
options ndots:5

so for each DNS query, it will go through the following queries:

ns0-tikv-0.ns0-tikv-peer.ns0.svc.ns0.svc.cluster.local
ns0-tikv-0.ns0-tikv-peer.ns0.svc.svc.cluster.local
ns0-tikv-0.ns0-tikv-peer.ns0.svc.cluster.local

This is unreasonable.

Describe the feature you'd like:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides no source files, tests, or entry points to follow. Start by tracing how TiDB Operator constructs component addresses and Kubernetes service DNS names, then measure the current resolver queries shown in the issue. Done should mean the generated addresses avoid unnecessary search-domain queries without breaking cluster connectivity.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.