Documentation
¶
Index ¶
Constants ¶
View Source
const ( AnnotationDiskType = "ultron.io/disk-type" AnnotationNetworkType = "ultron.io/network-type" AnnotationStorageSize = "ultron.io/storage-size" AnnotationPriority = "ultron.io/priority" CacheKeyWeightedNodes = "WEIGHTED_NODES" CacheKeyDurableVmConfigurations = "DURABLE_VMCONFIGURATION" CacheKeyDurableVmConfigurationLatencyRates = "DURABLE_VMCONFIGURATION_LATENCY_RATES" CacheKeySpotVmConfigurations = "SPOT_VMCONFIGURATION" CacheKeySpotVmConfigurationInteruptionRates = "SPOT_VMCONFIGURATION_INTERUPTION_RATES" ComputeTypeDurable ComputeType = "durable" ComputeTypeEphemeral ComputeType = "ephemeral" DefaultDiskType = "SSD" DefaultNetworkType = "isolated" DefaultStorageSizeGB = 10.0 DefaultPriority = PriorityLow DefaultDurableInstanceType = "ultron.durable" DefaultEphemeralInstanceType = "ultron.ephemeral" LabelHostName = "kubernetes.io/hostname" LabelInstanceType = "node.kubernetes.io/instance-type" MetadataName = "metadata.name" PriorityLow PriorityEnum = false PriorityHigh PriorityEnum = true )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputeConfiguration ¶
type ComputeConfiguration struct { emma.VmConfiguration ComputeType ComputeType }
type ComputeType ¶
type ComputeType string
type PriorityEnum ¶
type PriorityEnum bool
func (PriorityEnum) String ¶
func (p PriorityEnum) String() string
type WeightedInteruptionRate ¶
type WeightedLatencyRate ¶
type WeightedNode ¶
type WeightedNode struct { Selector map[string]string AvailableCPU float64 TotalCPU float64 AvailableMemory float64 TotalMemory float64 AvailableStorage float64 TotalStorage float64 DiskType string NetworkType string Price float64 MedianPrice float64 InstanceType string InterruptionRate WeightedInteruptionRate LatencyRate WeightedLatencyRate }
Click to show internal directories.
Click to hide internal directories.