tikv / tikv/pd

Consider a better way to get the max-alloc-id when recovering PD cluster

Open
#2,576 0 comments 0 reactions 1 assignee Claimed by @longfangsong View on GitHub
component/tools status/discussion-wanted 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

If the` max-alloc-id` is set incorrectly when recovering PD cluster, it will cause duplicate region id and cause the cluster to be unavailable. We currently use monitor and log to find it, but it is possible that people forget to set or the ID found in the log is incorrect(may log loss). We need a safer way to get the id.

### Describe the feature you'd like

### Describe alternatives you've considered

consider let recover tool do not need to set the id or a tool can more easy and safe to get the id.
- consider scanning all tikvs to get id
- consider collecting all regions' heartbeat then turn on `allocer`
and so on../
### Teachability, Documentation, Adoption, Migration Strategy
- Go

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.