tikv / tikv/pd

Checkers should check evict leader scheduler.

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

Description

## Feature Request
Rule checker should consider of evict leader scheduler in single replica cluster.
### Describe your feature request related problem
When I deleted 2 stores and add `evict leader to one node in one replica cluster, the operator could not be created.

offline region doesn't decrease:
![image](https://user-images.githubusercontent.com/23159587/149718272-d64aab7a-0f4b-4540-ab88-90105e4a4272.png)

rule checker patrol:
![Bg5UNXpQ9Q](https://user-images.githubusercontent.com/23159587/149718908-696ea4c4-151d-4438-ab3b-0bb0ded49bf6.png)

log in pd:
```
[2022/01/14 18:01:21.883 +08:00] [DEBUG] [rule_checker.go:108] ["fail to fix rule peer"] [rule-group=pd] [rule-id=default] [error="no valid leader"]
```
### Describe the feature you'd like
The `rule checker` works well even if there are some `evict leader scheduler ` in single replica cluster.

### 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.