store cpu load in node stats (#524)
* store cpu load in node stats * num cpus uint32 * cpu load selector test * dep update
This commit is contained in:
@@ -21,6 +21,10 @@ func CreateNodeSelector(conf *config.Config) (NodeSelector, error) {
|
||||
kind = "random"
|
||||
}
|
||||
switch kind {
|
||||
case "cpuload":
|
||||
return &CPULoadSelector{
|
||||
CPULoadLimit: conf.NodeSelector.CPULoadLimit,
|
||||
}, nil
|
||||
case "sysload":
|
||||
return &SystemLoadSelector{
|
||||
SysloadLimit: conf.NodeSelector.SysloadLimit,
|
||||
|
||||
Reference in New Issue
Block a user