Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TidbCluster: delete failure component Pod #981

Closed
LinuxGit opened this issue Oct 9, 2019 · 1 comment
Closed

TidbCluster: delete failure component Pod #981

LinuxGit opened this issue Oct 9, 2019 · 1 comment
Labels
tep TiDB Enterprise Platform
Milestone

Comments

@LinuxGit
Copy link
Contributor

LinuxGit commented Oct 9, 2019

Feature Request

Describe the feature you'd like:

eg. One of the Pod tikv-pod-1 in the tidb cluster failed (the K8s node was down and can't recover), TiDB Operator failover and start a new tikv-pod-3, we want to remove tikv-pod-1.

@LinuxGit LinuxGit added the tep TiDB Enterprise Platform label Oct 9, 2019
@tennix
Copy link
Member

tennix commented Oct 10, 2019

There are two options to accomplish this:

  • Change the failover logic to delete the old TiKV and create a new TiKV to replace it instead of creating another ordinal TiKV
  • Support scale in pod at arbitrary ordinal for statefulset.

The first needs to forcibly delete Pod/PVC/Store, it has risk of losing data.

@cofyc has implemented a modified statefulset controller that allows scale in at arbitrary ordinal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tep TiDB Enterprise Platform
Projects
None yet
Development

No branches or pull requests

2 participants