-
Notifications
You must be signed in to change notification settings - Fork 755
Open
Labels
type/csetype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Description
Enhancement Task
Before a PD becomes the leader, it will do some initialization work, see
pd/pkg/schedule/labeler/labeler.go
Line 54 in 9fe5653
| if err := l.loadRules(); err != nil { |
pd/pkg/schedule/placement/rule_manager.go
Lines 101 to 106 in 9fe5653
| if err := m.loadRules(); err != nil { | |
| return err | |
| } | |
| if err := m.loadGroups(); err != nil { | |
| return err | |
| } |
If one of them has too many rules, the election will be blocked. It can significantly increase the unavailable time. One possible solution is moving these kinds of jobs to the coordinator. We can also guarantee that they are loaded before the scheduling job starts.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/csetype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.