Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnosis ¶
type Offer ¶
type Policy ¶
type Policy struct {
AllocationThresholdPercent float64 `json:"allocation_threshold_percent"`
HostThresholdPercent float64 `json:"host_threshold_percent"`
HostMemoryReserve uint64 `json:"host_memory_reserve"`
HostCPUReserve float64 `json:"host_cpu_reserve"`
MemoryStepPercent float64 `json:"memory_step_percent"`
CPUStepPercent float64 `json:"cpu_step_percent"`
MaxMemory uint64 `json:"max_memory"`
MaxCPU float64 `json:"max_cpu"`
AllowVertical bool `json:"allow_vertical"`
AllowHorizontal bool `json:"allow_horizontal"`
}
func DefaultPolicy ¶
func DefaultPolicy() Policy
func PolicyFromConfig ¶
func PolicyFromConfig(cfg config.CapacityConfig) Policy
Click to show internal directories.
Click to hide internal directories.