tikv / tikv/pd

Transfer leader automatically when receiving SIGTERM

Open
#3,734 0 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Feature Request

### Describe your feature request related problem

Currently, during scaling in or upgrade, the deployment tool, like TiUP or TiDB Operator, needs to transfer the PD leader before the scaling in or upgrade, it should be easy for the PD process to transfer the leader if it is the leader when receiving the SIGTERM signal, so that it would be easier for the deployment tool to manage the lifecycle of the PD cluster.
In addition, it would be possible to manage the PD cluster without additional deployment tools.

### Describe the feature you'd like

### Describe alternatives you've considered

### Teachability, Documentation, Adoption, Migration Strategy

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.