Virtual cluster quotas

Virtual clusters support optional resource quotas that apply at the namespace level of the host cluster.

Virtual clusters support optional resource quotas. Quotas apply at the namespace level of the host (parent) cluster. When you turn quotas on, Cloudera Cloud Factory applies Kubernetes ResourceQuota and LimitRange objects to the namespace to constrain the workloads. When you create a virtual cluster, you can turn quotas on or off, choose the Small, Medium, or Large profile, or set every field in Custom mode.

The following table describes the quota concepts.

Table 1. Quota concepts
ConceptDescription
CPUMeasured in cores. 1 is one full core, 500m is half a core, and 100m is 10 percent of a core.
CPU requestThe minimum CPU reserved for a container.
CPU limitThe maximum CPU that a container can use. A container that exceeds the limit is throttled.
RAMMeasured in mebibytes and gibibytes. 128Mi is 128 mebibytes, and 1Gi is 1 gibibyte.
RAM requestThe memory reserved for a container.
RAM limitThe maximum memory that a container can use. A container that exceeds the limit is terminated with an out-of-memory (OOM) error.
Ephemeral storageTemporary disk space for logs, caches, and temporary files. It is deleted when the container is removed. A Pod that exceeds its ephemeral storage is terminated with the Evicted status.

The following table describes the quota fields and how they map to Kubernetes.

Table 2. Quota fields and Kubernetes mappings
FieldDescriptionKubernetes mapping
Max Cluster CPU Requests (core)The maximum total of the CPU requests of all containers.ResourceQuota.spec.hard["requests.cpu"]
Max Cluster CPU Limits (core)The maximum total of the CPU limits of all containers.ResourceQuota.spec.hard["limits.cpu"]
Default Container CPU Request (m)The request for containers that do not specify one.LimitRange.spec.limits[].defaultRequest.cpu
Default Container CPU Limit (m)The limit for containers that do not specify one.LimitRange.spec.limits[].default.cpu
Max Cluster RAM Requests (Gi)The maximum total of the memory requests of all containers.ResourceQuota.spec.hard["requests.memory"]
Max Cluster RAM Limits (Gi)The maximum total of the memory limits of all containers.ResourceQuota.spec.hard["limits.memory"]
Default Container RAM Request (Mi)The request for containers that do not specify one.LimitRange.spec.limits[].defaultRequest.memory
Default Container RAM Limit (Mi)The limit for containers that do not specify one.LimitRange.spec.limits[].default.memory
Max Cluster Ephemeral Storage Requests (Gi)The maximum total of the ephemeral storage requests.ResourceQuota.spec.hard["requests.ephemeral-storage"]
Max Cluster Ephemeral Storage Limits (Gi)The maximum total of the ephemeral storage limits.ResourceQuota.spec.hard["limits.ephemeral-storage"]
Default Container Ephemeral Storage Request (Mi)The request for containers that do not specify one.LimitRange.spec.limits[].defaultRequest.ephemeral-storage
Default Container Ephemeral Storage Limit (Gi)The limit for containers that do not specify one.LimitRange.spec.limits[].default.ephemeral-storage
Max PodsThe maximum total number of Pods.ResourceQuota.spec.hard.pods
Max PVCsThe maximum number of PersistentVolumeClaims (PVCs).ResourceQuota.spec.hard.persistentvolumeclaims
Max Total PVC Size (Gi)The maximum total storage, in gibibytes, that all PVCs can request together.ResourceQuota.spec.hard["requests.storage"]
Max IngressesThe maximum number of Ingresses.ResourceQuota.spec.hard["count/ingresses.networking.k8s.io"]
Max LoadBalancersThe maximum number of Services of type LoadBalancer.ResourceQuota.spec.hard.services.loadbalancers

The predefined profiles set the following values.

Table 3. Predefined quota profiles
ResourceSettingSmall (default)MediumLarge
CPURequest41224
CPULimit82448
CPUDefault request100m200m200m
CPUDefault limit1000m500m500m
RAMRequest8Gi24Gi48Gi
RAMLimit16Gi48Gi96Gi
RAMDefault request128Mi128Mi128Mi
RAMDefault limit512Mi512Mi512Mi
Ephemeral storageRequest10Gi15Gi30Gi
Ephemeral storageLimit20Gi30Gi60Gi
Ephemeral storageDefault request20Mi20Mi20Mi
Ephemeral storageDefault limit2Gi2Gi2Gi
PodsLimit50150300
PVCsLimit102040
PVC sizeLimit100Gi250Gi500Gi
IngressesLimit1050200
LoadBalancersLimit420100

If you turn on quotas when you create a virtual cluster, you can change them later as long as the parent cluster is healthy. The new values must follow the same rules. For example, limits must be greater than or equal to requests.