Documentation
¶
Index ¶
Constants ¶
const ( // LabelAnnotationPrefix is the prefix of every labels and annotations added by the controller. LabelAnnotationPrefix = "data.fluid.io/" // The format is data.fluid.io/storage-{runtime_type}-{data_set_name} LabelAnnotationStorageCapacityPrefix = LabelAnnotationPrefix + "storage-" // The dataset annotation LabelAnnotationDataset = LabelAnnotationPrefix + "dataset" )
const ( ErrorProcessDatasetReason = "ErrorProcessDataset" ErrorProcessRuntimeReason = "ErrorProcessRuntime" ErrorHelmInstall = "ErrorHelmInstall" DatasetNotReady = "DatasetNotReady" RuntimeNotReady = "RuntimeNotReady" DataLoadCollision = "DataLoadCollision" PrefetchJobStarted = "Prefetch Started" PrefetchJobInterrupted = "PrefetchJobInterrupted" PrefetchJobComplete = "Prefetch Complete" PrefetchJobFailed = "Prefetch Failed" )
Reason for Pillar events
const ( ALLUXIO_RUNTIME = "alluxio" ALLUXIO_NAMESPACE = "alluxio-system" ALLUXIO_CHART = ALLUXIO_RUNTIME ALLUXIO_DATA_LOADER_IMAGE_ENV = "AlluxioDataLoaderImage" DEFAULT_ALLUXIO_DATA_LOADER_IMAGE = "registry.cn-huhehaote.aliyuncs.com/alluxio/alluxio-data-loader:v2.2.0" ALLUXIO_INIT_IMAGE_ENV = "ALLUXIO_INIT_IMAGE_ENV" DEFAULT_ALLUXIO_INIT_IMAGE = "registry.cn-hangzhou.aliyuncs.com/fluid/init-users:v0.3.0-1467caa" )
Runtime for Alluxio
const ( DATALOAD_FINALIZER = "fluid-dataload-controller-finalizer" DATALOAD_CHART = "fluid-dataloader" DATALOAD_DEFAULT_IMAGE = "registry.cn-hangzhou.aliyuncs.com/fluid/fluid-dataloader" DATALOAD_SUFFIX_LENGTH = 5 ENV_DATALOADER_IMG = "DATALOADER_IMG" )
const RecommendedKubeConfigPathEnv = "KUBECONFIG"
Variables ¶
This section is empty.
Functions ¶
func GetDefaultTieredStoreOrder ¶
func GetDefaultTieredStoreOrder(MediumType MediumType) (order int)
Types ¶
type CacheStateList ¶
type CacheStateList map[CacheStateName]string
ResourceList is a set of (resource name, quantity) pairs.
type CacheStateName ¶
type CacheStateName string
CacheStateName is the name identifying various cacheStateName in a CacheStateNameList.
const ( // Cached in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) Cached CacheStateName = "cached" // Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) // Cacheable CacheStateName = "cacheable" LowWaterMark CacheStateName = "lowWaterMark" // Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) HighWaterMark CacheStateName = "highWaterMark" // NonCacheable size, in bytes (e,g. 5Gi = 5GiB = 5 * 1024 * 1024 * 1024) NonCacheable CacheStateName = "nonCacheable" // Percentage represents the cache percentage over the total data in the underlayer filesystem. // 1.5 = 1500m CachedPercentage CacheStateName = "cachedPercentage" CacheCapacity CacheStateName = "cacheCapacity" )
CacheStateName names must be not more than 63 characters, consisting of upper- or lower-case alphanumeric characters, with the -, _, and . characters allowed anywhere, except the first or last character. The default convention, matching that for annotations, is to use lower-case names, with dashes, rather than camel case, separating compound words. Fully-qualified resource typenames are constructed from a DNS-style subdomain, followed by a slash `/` and a name.
type CacheStoreType ¶
type CacheStoreType string
const ( DiskCacheStore CacheStoreType = "Disk" MemoryCacheStore CacheStoreType = "Memory" NoneCacheStore CacheStoreType = "" )
type DataloadConditionType ¶
type DataloadConditionType string
DataloadConditionType is a valid value for DataloadCondition.Type
const ( // DataloadComplete means the Dataload has completed its execution. DataloadComplete DataloadConditionType = "Complete" // DataloadFailed means the Dataload has failed its execution. DataloadFailed DataloadConditionType = "Failed" )
These are valid conditions of a Dataload.
type DataloadPhase ¶
type DataloadPhase string
const ( DataloadPhaseNone DataloadPhase = "" DataloadPhasePending DataloadPhase = "Pending" DataloadPhaseLoading DataloadPhase = "Loading" DataloadPhaseComplete DataloadPhase = "Complete" DataloadPhaseFailed DataloadPhase = "Failed" )
type MediumType ¶
type MediumType string
const ( Memory MediumType = "MEM" SSD MediumType = "SSD" HDD MediumType = "HDD" )
type ResourceList ¶
type ResourceList map[corev1.ResourceName]string
type Resources ¶
type Resources struct {
Requests ResourceList `yaml:"requests,omitempty"`
Limits ResourceList `yaml:"limits,omitempty"`
}
type RuntimeRole ¶
type RuntimeRole string