Documentation
¶
Index ¶
Constants ¶
View Source
const ( // OverSubscriptionTypesKey define the overSubscription resource types OverSubscriptionTypesKey = "volcano.sh/oversubscription-types" // NodeOverSubscriptionCPUKey define the oversubscription cpu resource on the node NodeOverSubscriptionCPUKey = "volcano.sh/oversubscription-cpu" // NodeOverSubscriptionMemoryKey define the oversubscription memory resource on the node NodeOverSubscriptionMemoryKey = "volcano.sh/oversubscription-memory" // PodQosLevelKey define pod qos level, see pkg/agent/apis/extension/qos.go for specific values. PodQosLevelKey = "volcano.sh/qos-level" // PodEvictingKey define if the offline job is evicting PodEvictingKey = "volcano.sh/offline-job-evicting" // ColocationEnableNodeLabelKey is the label name for colocation, // indicates whether the node enable colocation, set "true" or "false", default is "false" ColocationEnableNodeLabelKey = "volcano.sh/colocation" // OverSubscriptionNodeLabelKey define whether a node is oversubscription node. OverSubscriptionNodeLabelKey = "volcano.sh/oversubscription" // NetworkBandwidthRateAnnotationKey is the annotation key of network bandwidth rate, unit Mbps. NetworkBandwidthRateAnnotationKey = "volcano.sh/network-bandwidth-rate" // Deprecated:This is used to be compatible with old api. // PodEvictedOverSubscriptionCPUHighWaterMarkKey define the high watermark of cpu usage when evicting offline pods PodEvictedOverSubscriptionCPUHighWaterMarkKey = "volcano.sh/oversubscription-evicting-cpu-high-watermark" // Deprecated:This is used to be compatible with old api. // PodEvictedOverSubscriptionMemoryHighWaterMarkKey define the high watermark of memory usage when evicting offline pods PodEvictedOverSubscriptionMemoryHighWaterMarkKey = "volcano.sh/oversubscription-evicting-memory-high-watermark" // Deprecated:This is used to be compatible with old api. // PodEvictedOverSubscriptionCPULowWaterMarkKey define the low watermark of cpu usage when the node could overSubscription resources PodEvictedOverSubscriptionCPULowWaterMarkKey = "volcano.sh/oversubscription-evicting-cpu-low-watermark" // Deprecated:This is used to be compatible with old api. // PodEvictedOverSubscriptionMemoryLowWaterMarkKey define the low watermark of memory usage when the node could overSubscription resources PodEvictedOverSubscriptionMemoryLowWaterMarkKey = "volcano.sh/oversubscription-evicting-memory-low-watermark" // PodEvictedCPUHighWaterMarkKey define the high watermark of cpu usage when evicting offline pods PodEvictedCPUHighWaterMarkKey = "volcano.sh/evicting-cpu-high-watermark" // PodEvictedMemoryHighWaterMarkKey define the high watermark of memory usage when evicting offline pods PodEvictedMemoryHighWaterMarkKey = "volcano.sh/evicting-memory-high-watermark" // PodEvictedCPULowWaterMarkKey define the low watermark of cpu usage when the node could overSubscription resources PodEvictedCPULowWaterMarkKey = "volcano.sh/evicting-cpu-low-watermark" // PodEvictedMemoryLowWaterMarkKey define the low watermark of memory usage when the node could overSubscription resources PodEvictedMemoryLowWaterMarkKey = "volcano.sh/evicting-memory-low-watermark" // ResourceDefaultPrefix is the extended resource prefix. ResourceDefaultPrefix = "kubernetes.io/" ExtendResourceCPU = ResourceDefaultPrefix + "batch-cpu" ExtendResourceMemory = ResourceDefaultPrefix + "batch-memory" // ColocationPolicyKey is the label key of node custom colocation policy. ColocationPolicyKey = "colocation-policy" )
Variables ¶
View Source
var OverSubscriptionResourceTypes = []corev1.ResourceName{corev1.ResourceCPU, corev1.ResourceMemory}
View Source
var OverSubscriptionResourceTypesIncludeExtendResources = []corev1.ResourceName{corev1.ResourceCPU, corev1.ResourceMemory, ExtendResourceCPU, ExtendResourceMemory}
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource map[corev1.ResourceName]int64
Resource mapping resource type and usage.
type Watermark ¶
type Watermark map[corev1.ResourceName]int
Watermark defines resource eviction watermark.
Click to show internal directories.
Click to hide internal directories.