pingcap / pingcap/tiup

Support starting TiDB cluster managed by K8s and tidb-operator in case that K8s itself has a full cluster crash

Open
#743 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status/discuss type/feature-request
Dominant language
Go
Stars
466
Forks
338
Avg merge
3d 7h
Merged PRs (30d)
8

Description

Feature Request

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

In some extreme scenarios, Kubernetes cluster and services may crash unexpected due to bugs or intended mis-operations.
In that case, tidb cluster pods managed by K8s may not work normally, which lead to business failure. If we want to recover from failure, we need to locate and fix problem which may consume a lot of time.

Describe the feature you'd like:

TiUP support fetching topology metadata of tidb cluster from tidb-operator and regularly updating local repository. When K8s service is unavailable, TiUP can read cluster metadata from local to restart the affected tidb cluster.

Describe alternatives you've considered:

Deploy another tidb cluster separately as an active standy cluster in advance or use BR backup to restore data to a new cluster after a failure.

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

Start by reading the TiUP repository and the linked tidb-operator project to understand how TiDB cluster topology metadata is currently managed. Define the metadata-fetching, local-update, and Kubernetes-outage recovery entry points before identifying what tests and recovery behavior would demonstrate completion.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
databases, infrastructure
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.