Resolving Exceeded Resource Quotas
When a namespace runs out of resource quota, new compute clusters, Spark job runs, and Jupyter containers in that namespace can't start until room frees up. This page explains what a resource quota is, how to recognize that you've hit it, and how to resolve it, starting with the workloads you can stop yourself and ending with a quota increase.
What Is a Resource Quota?
A ResourceQuota is a Kubernetes object that caps the total resources all workloads in one namespace can use. Your Kubernetes administrator sets it, and it typically limits:
- CPU:
requests.cpuandlimits.cpu, in cores. - Memory:
requests.memoryandlimits.memory. - Pods:
pods, the number of pods that can exist at once. - Storage:
requests.storageandpersistentvolumeclaims.
Every IOMETE workload runs as pods in a namespace: a compute cluster has a driver pod plus executor pods, a Spark job run has a driver plus executors, and a Jupyter container has its own pod. Each pod's CPU and memory count against the namespace's quota for as long as the pod exists.
Storage quota works differently. It's charged to persistent volume claims (PVCs), not pods. A PVC keeps counting against requests.storage and persistentvolumeclaims until the PVC itself is deleted, even after the pods that used it stop.
Kubernetes checks the quota only when a pod or PVC is created. If the new object would push the namespace over any limit, Kubernetes rejects it. Pods that are already running keep running.
IOMETE doesn't create or change quotas. It reads them from the data plane and shows usage on the Home page under Namespace quotas. For how to read that view, see Namespace Quotas.
Recognizing an Exceeded Quota
You've likely hit the quota when you see one or more of these:
| Where | What You See |
|---|---|
| Home → Namespace quotas | The namespace or one of its workload-type rows shows Exhausted, or utilization at or above 100%. |
| Create or configure form | The namespace dropdown shows a red over value, or the form rejects your settings with Resource quota exceeded. Please adjust your configuration. |
| Compute cluster | The cluster stays in Starting and then moves to Failed, or stays Active with fewer executors than configured. |
| Spark job run | With the Job Orchestrator enabled, the run stays Enqueued and the job details show which resource blocks it. Without it, runs never show Enqueued; check the run's Kubernetes events tab for an exceeded quota message instead. |
| Kubernetes events tab | A message containing exceeded quota, for example pods "..." is forbidden: exceeded quota: team-a-quota, requested: requests.cpu=4, used: requests.cpu=38, limited: requests.cpu=40. |
If the message says Insufficient cpu or Insufficient memory and the pod is Pending, the namespace has quota left but the cluster has no free nodes. That's a capacity problem, not a quota problem, and freeing quota won't help. See Quota Is Not Capacity.
Resolving an Exceeded Quota
Work through these steps in order. Most quota problems are solved by stopping workloads nobody is using, so a quota increase should be the last resort.
Step 1: Find What Is Using the Quota
Open Home → Namespace quotas and expand the affected namespace. Note which resource is exhausted (CPU, memory, pods, or storage) and, if priority classes are enabled, which workload type (Compute quota, Spark job quota, or Notebook quota) is at its limit. This tells you where to look first.
Step 2: Review Compute Clusters
Compute clusters are usually the largest consumers, because their driver keeps running until someone stops it, even when no queries arrive.
- Open Compute and filter the list to the affected namespace.
- For each Active cluster, ask:
- Is anyone still running queries? Open the Spark UI to see active and recent queries, and confirm with the cluster's users before stopping it. The Connections tab only shows connection snippets, not live activity.
- Is the cluster a leftover from testing, a demo, or a finished project?
- Is it larger than it needs to be? A cluster with a high maximum executor count can hold a large share of the quota when it scales up.
- Terminate clusters that aren't needed: click Terminate, then Yes, terminate it. The cluster's configuration is kept, so you can start it again later. See Terminating a Cluster.
- Delete clusters that will never be used again.
- For clusters you keep, consider lowering the maximum executor count or the node type, and keep Auto scaling enabled with a short idle timeout so idle executors scale down and release their quota. See Creating Clusters.
Clusters in Failed state may still hold pods. Terminate them too if you don't plan to restart them right away.
Step 3: Review Spark Jobs
- In the left sidebar, under Applications, open Job Templates and check the jobs that deploy to the affected namespace.
- On each job's Applications tab, look for runs that are running much longer than usual, are stuck, or were started by mistake. Abort them from the run's three-dot menu with Abort app, then Yes, abort it.
- Review streaming jobs under Applications > Streaming Jobs. They run until stopped, so a forgotten streaming job holds its quota indefinitely. Abort any you no longer need. See Streaming Jobs.
- Review scheduled jobs:
- Suspend jobs whose scheduled runs are no longer needed.
- Check the Concurrency setting. Allow lets runs overlap, so a slow job can stack up several concurrent runs. Forbid or Replace prevents that.
- Spread schedules that all start at the same time, for example on the hour.
- Set a Max execution duration on jobs so a hung run is terminated instead of holding quota forever. See Spark Application Config.
- Right-size job resources. A job asking for more executors or larger executors than it uses wastes quota for every run.
Step 4: Review Other Resources
- Jupyter containers: open Jupyter Containers under Engine, filter to the namespace, and terminate containers that are Active but not in use. Data on an attached persistent volume is kept. Without a volume, every file in the container is lost on termination, including saved notebooks, so check with the owner and back up local files first. See Terminating a Container.
- Persistent volume claims: if the exhausted resource is storage or
persistentvolumeclaims, stopping pods won't help, because storage quota is charged to PVCs. Delete Jupyter containers you no longer need. A container's On Demand PVC persists, and counts against the quota, even while the container is stopped; deleting the container deletes the PVC and its data. See PVC Lifecycle and Volumes. - Other workloads in the namespace: anything else your team deploys into the namespace outside IOMETE also counts against the quota. Ask your administrator to check with
kubectl describe resourcequota -n <namespace>andkubectl get pods -n <namespace>.
If you don't own a workload you think should be stopped, contact its owner before terminating it. The owner of the workload's resource bundle is the person to ask. See Find the Cluster's Owner.
Step 5: Request a Quota Increase
If the namespace is still full after you've stopped everything you can, your workloads genuinely need more room. Ask your Kubernetes administrator to raise the quota, and include:
- The namespace and data plane.
- Which resource is exhausted (CPU, memory, pods, or storage) and the current usage and limit from the Namespace quotas tab.
- Which workloads need the extra room and roughly how much they need, for example "two nightly Spark jobs with 10 executors of 4 vCPU each".
- Whether the need is permanent or temporary, such as a backfill.
The administrator updates the ResourceQuota object for the namespace. The new limit shows on the Namespace quotas tab within a few seconds. Raising a quota doesn't add nodes, so the administrator should also confirm the cluster has the capacity to back it. See Setting Quotas.
Preventing Quota Exhaustion
- Terminate compute clusters and Jupyter containers at the end of the day or when a project ends.
- Keep Auto scaling enabled on compute clusters so idle executors release their quota.
- Set a Max execution duration on every Spark job.
- Use Forbid or Replace concurrency on scheduled jobs that shouldn't overlap.
- Check Home → Namespace quotas regularly and act on Near limit before it becomes Exhausted.
Related Resources
- Namespace Quotas: read quota usage in the console and understand quota statuses.
- Managing Compute Clusters: start, terminate, and configure clusters.
- Job Orchestrator: how Spark job runs wait for quota.
- Priority Classes: scope quotas per workload type.
- Kubernetes Resource Quotas: the upstream reference.