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:
@@ -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{},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user