feat(cloudcommon): move ignore_nonrunning_guests option to common

This commit is contained in:
Zexi Li
2021-08-25 21:02:50 +08:00
parent 71be0e5ff7
commit b3a648fc76
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -109,6 +109,7 @@ var (
"customized_private_prefixes",
"global_http_proxy",
"global_https_proxy",
"ignore_nonrunning_guests",
},
}
+2
View File
@@ -102,6 +102,8 @@ type BaseOptions struct {
GlobalHTTPProxy string `help:"Global http proxy"`
GlobalHTTPSProxy string `help:"Global https proxy"`
IgnoreNonrunningGuests bool `default:"true" help:"Count memory for running guests only when do scheduling. Ignore memory allocation for non-running guests"`
}
const (
-1
View File
@@ -27,7 +27,6 @@ type ComputeOptions struct {
DNSDomain string `help:"Domain suffix for virtual servers"`
DNSResolvers []string `help:"Upstream DNS resolvers"`
IgnoreNonrunningGuests bool `default:"true" help:"Count memory for running guests only when do scheduling. Ignore memory allocation for non-running guests"`
DefaultCPUOvercommitBound float32 `default:"8.0" help:"Default cpu overcommit bound for host, default to 8"`
DefaultMemoryOvercommitBound float32 `default:"1.0" help:"Default memory overcommit bound for host, default to 1"`
DefaultStorageOvercommitBound float32 `default:"1.0" help:"Default storage overcommit bound for storage, default to 1"`