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
+2
View File
@@ -158,6 +158,7 @@ type WebHookConfig struct {
type NodeSelectorConfig struct {
Kind string `yaml:"kind"`
CPULoadLimit float32 `yaml:"cpu_load_limit"`
SysloadLimit float32 `yaml:"sysload_limit"`
Regions []RegionConfig `yaml:"regions"`
}
@@ -226,6 +227,7 @@ func NewConfig(confString string, c *cli.Context) (*Config, error) {
NodeSelector: NodeSelectorConfig{
Kind: "random",
SysloadLimit: 0.9,
CPULoadLimit: 0.9,
},
Keys: map[string]string{},
}