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:
Mathew Kamkar
2022-03-16 14:51:22 -07:00
committed by GitHub
parent 33f9726b79
commit cac6d22a72
11 changed files with 146 additions and 27 deletions
+4
View File
@@ -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,