mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-22 06:40:54 +08:00
feat(cloudcommon): move ignore_nonrunning_guests option to common
This commit is contained in:
@@ -109,6 +109,7 @@ var (
|
||||
"customized_private_prefixes",
|
||||
"global_http_proxy",
|
||||
"global_https_proxy",
|
||||
"ignore_nonrunning_guests",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user