scheduler: make schedtag prefer and avoid strategy work

This commit is contained in:
Zexi Li
2018-12-11 18:23:09 +08:00
parent f162ff5844
commit 2c5ed4b360
17 changed files with 642 additions and 196 deletions

View File

@@ -0,0 +1,12 @@
package plugin
import (
"yunion.io/x/onecloud/pkg/scheduler/core"
)
type BasePlugin struct{}
// Customize priority
func (p BasePlugin) OnPriorityEnd(u *core.Unit, c core.Candidater) {}
func (p BasePlugin) OnSelectEnd(u *core.Unit, c core.Candidater, count int64) {}