options

package
v2.1.16+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeOptions

type ComputeOptions struct {
	PortV2 int `help:"Listening port for region V2"`

	DNSServer    string   `help:"Address of DNS server"`
	DNSDomain    string   `help:"Domain suffix for virtual servers"`
	DNSResolvers []string `help:"Upstream DNS resolvers"`

	IgnoreNonrunningGuests        bool    `` /* 126-byte string literal not displayed */
	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"`

	DefaultSecurityRules      string `help:"Default security rules" default:"allow any"`
	DefaultAdminSecurityRules string `help:"Default admin security rules" default:""`

	DefaultDiskSize int `default:"30720" help:"Default disk size in MB if not specified, default to 30GiB"`

	EnablePendingDelete            bool `default:"true" help:"Turn on/off pending delete VM and disk, default is on"`
	PendingDeleteCheckSeconds      int  `default:"3600" help:"How long to wait to scan pending delete VM or disks, default is 1 hour"`
	PendingDeleteExpireSeconds     int  `default:"259200" help:"How long a pending delete VM/disks cleaned automatically, default 3 days"`
	PendingDeleteMaxCleanBatchSize int  `default:"50" help:"How many pending delete servers can be clean in a batch"`

	ImageCacheStoragePolicy string `default:"least_used" choices:"best_fit|least_used" help:"Policy to choose storage for image cache, best_fit or least_used"`
	MetricsRetentionDays    int32  `default:"30" help:"Retention days for monitoring metrics in influxdb"`

	DefaultBandwidth int `default:"1000" help:"Default bandwidth"`

	DefaultCpuQuota            int `help:"Common CPU quota per tenant, default 50" default:"50"`
	DefaultMemoryQuota         int `default:"51200" help:"Common memory quota per tenant in MB, default 50G"`
	DefaultStorageQuota        int `default:"3072000" help:"Common storage quota per tenant in MB, default 3000G"`
	DefaultPortQuota           int `default:"50" help:"Common network port quota per tenant, default 50"`
	DefaultEipQuota            int `default:"10" help:"Common floating IP quota per tenant, default 10"`
	DefaultEportQuota          int `default:"50" help:"Common exit network port quota per tenant, default 50"`
	DefaultBwQuota             int `default:"500000" help:"Common network port bandwidth in mbps quota per tenant, default 50*10Gbps"`
	DefaultEbwQuota            int `default:"1000" help:"Common exit network port bandwidth quota per tenant, default 1Gbps"`
	DefaultKeypairQuota        int `default:"50" help:"Common keypair quota per tenant, default 50"`
	DefaultImageQuota          int `default:"5" help:"Common image quota per tenant, default 5"`
	DefaultGroupQuota          int `default:"50" help:"Common group quota per tenant, default 50"`
	DefaultSecgroupQuota       int `default:"50" help:"Common security group quota per tenant, default 50"`
	DefaultIsolatedDeviceQuota int `default:"50" help:"Common isolated device quota per tenant, default 50"`

	SystemAdminQuotaCheck bool `help:"Enable quota check for system admin, default False" default:"false"`

	BaremetalPreparePackageUrl string `help:"Baremetal online register package"`

	cloudcommon.DBOptions
}
var (
	Options ComputeOptions
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL