Documentation
¶
Index ¶
- Constants
- func CPUSafePredicate(node *v1.Node, podRequest *schedulercache.Resource) (bool, string, error)
- func MemorySafePredicate(node *v1.Node, podRequest *schedulercache.Resource) (bool, string, error)
- func PredicateFunc(pod v1.Pod, node v1.Node) (bool, error)
- func PriorityFunc(pod v1.Pod, nodes []v1.Node, isBalance bool) (*schedulerapi.HostPriorityList, error)
Constants ¶
View Source
const ( // PredicateSafeOverloadName : name of safe overload predicate PredicateSafeOverloadName = "safe-overload" // PrioritySafeOverloadName : name of safe overload priority function PrioritySafeOverloadName = "safe-overload" // PrioritySafeBalanceName : name of safe balance priority function PrioritySafeBalanceName = "safe-balance" )
*
- Names of predicates and priority functions
View Source
const ( // MeanFreeMemoryKey : key for the mean free memory MeanFreeMemoryKey = "mean-free-memory" // StdFreeMemoryKey : key for the standard deviation free memory StdFreeMemoryKey = "std-free-memory" // MeanFreeCPUKey : key for the mean free CPU MeanFreeCPUKey = "mean-free-cpu" // StdFreeCPUKey : key for the standard deviation free CPU StdFreeCPUKey = "std-free-cpu" // ForcatedFreeMemoryKey : key for the forecasted free memory ForcastedFreeMemoryKey = "forcasted-free-memory" // ForcatedFreeCPUKey : key for the forecasted free CPU ForcastedFreeCPUKey = "forcasted-free-cpu" )
*
- Key labels
View Source
const ( // SafeUtilization : safe value target utilization SafeUtilization = "SAFEUTILIZATION" // SafePercentile : safe value of acceptable percentile above target SafePercentile = "SAFEPERCENTILE" // SafePrintTable : safe option to print table SafePrintTable = "SAFEPRINTTABLE" // SafeForecastWeight : safe weight to include forecasted figures SafeForecastWeight = "SAFEFORECASTWEIGHT" // DefaultSafeUtilization : default value for the safe utilization parameter DefaultSafeUtilization = 0.90 // DefaultSafePercentile : default value for the safe percentile parameter DefaultSafePercentile = 0.30 // DefaultForecastWeight : default value for the weight of forcasted value DefaultForecastWeight = 0.20 )
*
- Environment variables and their default values
Variables ¶
This section is empty.
Functions ¶
func CPUSafePredicate ¶
CPUSafePredicate : compute safe predicate for CPU
func MemorySafePredicate ¶
MemorySafePredicate : compute safe predicate for memory
func PredicateFunc ¶
PredicateFunc : safe predicate function
func PriorityFunc ¶
func PriorityFunc(pod v1.Pod, nodes []v1.Node, isBalance bool) (*schedulerapi.HostPriorityList, error)
PriorityFunc : compute safe priority function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.