mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
rename cpu_total_compute and docs
This commit is contained in:
@@ -39,7 +39,7 @@ client {
|
||||
}
|
||||
network_interface = "eth0"
|
||||
network_speed = 100
|
||||
cpu_compute = 4444
|
||||
cpu_total_compute = 4444
|
||||
reserved {
|
||||
cpu = 10
|
||||
memory = 10
|
||||
|
||||
@@ -183,7 +183,7 @@ type ClientConfig struct {
|
||||
NetworkSpeed int `mapstructure:"network_speed"`
|
||||
|
||||
// CpuCompute is used to override any detected or default total CPU compute.
|
||||
CpuCompute int `mapstructure:"cpu_compute"`
|
||||
CpuCompute int `mapstructure:"cpu_total_compute"`
|
||||
|
||||
// MaxKillTimeout allows capping the user-specifiable KillTimeout.
|
||||
MaxKillTimeout string `mapstructure:"max_kill_timeout"`
|
||||
|
||||
@@ -336,7 +336,7 @@ func parseClient(result **ClientConfig, list *ast.ObjectList) error {
|
||||
"chroot_env",
|
||||
"network_interface",
|
||||
"network_speed",
|
||||
"cpu_compute",
|
||||
"cpu_total_compute",
|
||||
"max_kill_timeout",
|
||||
"client_max_port",
|
||||
"client_min_port",
|
||||
|
||||
Reference in New Issue
Block a user