Support starting TiDB cluster managed by K8s and tidb-operator in case that K8s itself has a full cluster crash
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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