1. What breaks first in large Kubernetes clusters

Large Kubernetes clusters break at the control plane before the data plane: API requests queue behind a fixed concurrency budget, watches and lists multiply with node and object counts, and the scheduler and controllers compete for the same API capacity. Node count alone does not size the control plane; request shape does.

Illustrative composite: a platform team grows a cluster from 200 to 900 nodes for a batch AI workload. Node capacity is fine, yet pod startup latency triples during submission bursts. The scheduler is not slow at scoring nodes; its binding requests queue behind thousands of operator list calls and a GitOps controller resyncing every minute. API Priority and Fairness correctly protects leader election and node heartbeats, so the cluster stays up, but batch submissions starve in a low priority level whose concurrency share was sized for a cluster a quarter of this size. Nothing is down. Everything is late. That is the signature failure of large Kubernetes clusters, and it is a capacity allocation problem, not an outage.

Kubernetes documents scalability thresholds of 5,000 nodes, 150,000 pods and 300,000 containers per cluster, with API responsiveness targets attached. Reaching those numbers in practice depends less on raw counts than on churn: how many objects change per second, how many clients watch them, and how much of that traffic is list-heavy polling instead of efficient watches. A quiet 3,000-node cluster can be easier on the control plane than a churning 300-node cluster running dozens of operators.

This guide treats the control plane as a budgeted resource. API Priority and Fairness divides that budget between request classes, client-side QPS limits shape how fast each component spends it, etcd sets the write ceiling underneath everything, and the scheduler converts API capacity into placement decisions. The Kubernetes architecture guide covers the component model this budgeting builds on.


2. How API Priority and Fairness classifies requests

API Priority and Fairness classifies each API request with FlowSchemas, assigns it to a PriorityLevelConfiguration, and queues or rejects it within that level's concurrency budget. Classification runs after authentication and authorization, so user, group, verb, resource and namespace decide which budget a request spends.

FlowSchemas evaluate in ascending matchingPrecedence order and the first match wins. That ordering is the arbitration rule for the whole system: a broad catch-all schema with a low precedence number shadows every specific schema after it. Each schema points at a priority level and may set a distinguisher, ByUser or ByNamespace, which splits matched requests into separate queues so one tenant cannot consume the level's entire budget. The built-in schemas protect system traffic: leader election, node heartbeats, and core controllers receive dedicated levels, while general workload traffic shares lower ones.

PriorityLevelConfigurations define the budget. nominalConcurrencyShares sets each level's share of the server's total concurrency, which derives from the inflight limits. Limited levels can also set lendablePercent and borrowing limits, letting an idle level lend capacity to busy neighbors without surrendering its guarantee. Queuing behavior is configurable per level: requests beyond the concurrency limit either wait in bounded queues or reject immediately with 429 and a retry hint.

The exempt level bypasses queuing entirely and exists for system:masters traffic. Granting exempt broadly removes all backpressure and lets one client saturate the API server, which defeats the purpose of the system. Audit which identities map to exempt as part of any APF review; in large Kubernetes clusters, an over-privileged automation account on the exempt level is a recurring root cause of control-plane saturation.


3. Reading APF behavior in large Kubernetes clusters

Large Kubernetes clusters need APF evidence before APF changes: queue depth, rejections and wait time per priority level show whether requests starve from misclassification, undersized shares, or genuine overload. Tune from those metrics, never from node counts or intuition alone.

Start with the flow control metrics:

bash
kubectl get --raw '/metrics' | grep 'apiserver_flowcontrol_current_inqueue_requests'
kubectl get --raw '/metrics' | grep 'apiserver_flowcontrol_rejected_requests_total'
kubectl get --raw '/metrics' | grep 'apiserver_flowcontrol_request_wait_duration_seconds'
kubectl get flowschemas.flowcontrol.apiserver.k8s.io
kubectl get prioritylevelconfigurations.flowcontrol.apiserver.k8s.io
promql
sum by (priority_level) (rate(apiserver_flowcontrol_rejected_requests_total[5m]))
histogram_quantile(0.99, sum by (le, priority_level) (rate(apiserver_flowcontrol_request_wait_duration_seconds_bucket[5m])))
sum by (flow_schema, priority_level) (rate(apiserver_flowcontrol_dispatched_requests_total[5m]))

Read rejections by level first. Rejections concentrated in workload levels during bursts, with system levels clean, mean APF is protecting the control plane and the workload level needs more share or the client needs backoff. Rejections in system levels mean the server is undersized overall or etcd cannot drain writes. Long wait durations with few rejections mean queues absorb bursts but latency suffers; that is a share-sizing question, not an emergency.

Use the debug endpoint to see live classification when metrics are ambiguous:

bash
kubectl get --raw '/debug/api_priority_and_fairness/dump_priority_levels'
kubectl get --raw '/debug/api_priority_and_fairness/dump_queues'

The dump shows current concurrency, queue occupancy and the requests waiting, which confirms whether a specific tenant or controller occupies a level. Pair it with request totals by user agent to name the spender before changing any schema.


4. Sizing priority levels for large Kubernetes clusters

Large Kubernetes clusters size priority levels from observed dispatched requests and wait times per level, then adjust nominalConcurrencyShares so critical levels keep guarantees while bulk levels borrow idle capacity. Shares are relative, so raising one level dilutes others unless total server concurrency grows too.

A custom priority level for batch submissions looks like this:

yaml
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: PriorityLevelConfiguration
metadata:
  name: batch-workloads
spec:
  type: Limited
  limited:
    nominalConcurrencyShares: 20
    lendablePercent: 50
    borrowingLimitPercent: 100
    limitResponse:
      type: Queue
      queuing:
        queues: 32
        queueLengthLimit: 100
        handSize: 6

And a FlowSchema routing batch namespaces into it:

yaml
apiVersion: flowcontrol.apiserver.k8s.io/v1
kind: FlowSchema
metadata:
  name: batch-namespaces
spec:
  matchingPrecedence: 500
  priorityLevelConfiguration:
    name: batch-workloads
  distinguisherMethod:
    type: ByNamespace
  rules:
    - subjects:
        - kind: ServiceAccount
          serviceAccount:
            name: batch-submitter
            namespace: batch
      resourceRules:
        - verbs:
            - create
            - update
            - patch
          apiGroups:
            - batch
          resources:
            - jobs

Change one level at a time and watch wait duration and rejections for a full traffic cycle. Queue parameters matter at scale: more queues with a ByNamespace distinguisher spread tenants across shuffle-sharded queues so one noisy namespace delays only its queue-mates, while handSize controls how many queues compete for each dispatch slot. The defaults suit small clusters; large Kubernetes clusters with many tenants benefit from more queues per level and distinguishers on every workload-facing schema.


5. Client QPS and burst in large Kubernetes clusters

Large Kubernetes clusters are shaped as much by client-side QPS and burst limits as by server-side APF: kubelets, controller-manager, scheduler and operators each throttle their own request rate, and misaligned client limits either starve components or flood the server. Tune both sides together.

Documented defaults frame the discussion. Kubelets default to kubeAPIQPS: 50 and kubeAPIBurst: 100 per node, controller-manager to --kube-api-qps=20 and --kube-api-burst=30, and the API server to 400 non-mutating and 200 mutating inflight requests as the concurrency base APF divides. These are starting points from component documentation, not production prescriptions. A controller-manager at default QPS can become the bottleneck in a cluster with thousands of Deployments, while hundreds of operators each running at generous QPS can collectively exceed what etcd drains.

Multiply before you tune. Per-node kubelet traffic scales with node count, and heartbeat and lease traffic have separate controls. Operator traffic scales with the number of custom resources each operator watches. The server sees the sum, so capacity planning adds client budgets across every component and compares the total against measured API server and etcd throughput.

Raise client limits only with server evidence. If APF queues for a controller's level sit empty while the controller's own rate limiter waits, the client limit is the constraint and raising it helps. If APF queues are full, raising client QPS only moves the queue server-side and adds 429 retries. Measure request rates and quantiles per component before and after any change, and change one client's limits at a time so the effect is attributable.


6. Watch load and list pressure at scale

Large Kubernetes clusters multiply watch load because every controller, operator and node agent watches the objects it cares about, and every object change fans out to all watchers. Efficient watches are cheap; repeated lists, broken informers and unfiltered watches are what saturate API servers at scale.

The API server's watch cache absorbs most read pressure by serving lists and watches from memory fed by a single etcd watch per resource type. Cache efficiency depends on clients using watches correctly: a client that lists with a resourceVersion and then watches resumes cheaply, while a client that relists from scratch forces full serialization of the collection. At 150,000 pods, one relist of all pods is a multi-megabyte response; dozens of clients relisting after a network blip become a thundering herd the cache must serve simultaneously.

Find the offenders from request metrics:

bash
kubectl get --raw '/metrics' | grep '^apiserver_request_total' | grep 'verb="LIST"'
kubectl get --raw '/metrics' | grep '^apiserver_longrunning_requests'
promql
sum by (resource, user_agent) (rate(apiserver_request_total{verb="LIST"}[5m]))
sum by (resource) (rate(apiserver_request_total{verb="WATCH"}[5m]))

Fix clients, not just servers. Require informers with label or field selectors scoped to what each controller owns, set sane resync periods, and paginate unavoidable large lists. Streaming lists and watch bookmarks reduce relist cost on modern Kubernetes versions; verify your clients use them. On the server side, API server memory must hold the watch cache for every watched resource type, so cache size grows with object counts and object sizes. Undersized API server memory shows up as cache churn and LIST latency long before CPU saturates.

Object size is the quiet multiplier behind watch cost. A ConfigMap or Secret near the 1 MiB etcd value limit is serialized into every list response and watch event for its type, so a handful of oversized objects can dominate read traffic for an entire resource. Audit the largest objects per type during capacity reviews, move bulk data out of the API into object storage with references, and treat object-size admission limits as control-plane protection rather than bureaucracy.


7. Scheduler throughput in large Kubernetes clusters

Large Kubernetes clusters expose scheduler throughput limits when pod creation bursts outpace binding: the scheduler must score nodes, run plugins and write bindings through the same API budget everything else uses. Scheduling latency at scale is usually API and plugin cost, not node shortage.

Measure the scheduler's own metrics before tuning:

bash
kubectl get --raw '/metrics' | grep 'scheduler_schedule_attempts_total'
kubectl get --raw '/metrics' | grep 'scheduler_scheduling_attempt_duration_seconds'
kubectl get --raw '/metrics' | grep 'scheduler_pending_pods'

Scheduling attempt duration splits into filtering, scoring and binding phases. Filtering cost grows with node count and with expensive plugins such as inter-pod affinity, which evaluates pod topology across nodes. A cluster with heavy anti-affinity rules on thousands of nodes pays that cost on every scheduling attempt, and retries multiply it when pods fail to schedule. The Kubernetes scheduling guide covers how affinity rules shape placement cost and behavior.

Throughput levers exist but carry trade-offs. Percentage-of-nodes-to-score limits how many nodes each attempt evaluates, which speeds scheduling on huge clusters while accepting slightly worse placement. Multiple scheduler replicas with leader election do not parallelize scheduling; only the leader schedules. The honest scaling path is cheaper plugins, fewer unschedulable retries through sane requests and quotas, and enough API capacity that binding writes never queue behind bulk traffic. Track pending pods by reason: pods pending on quota or affinity are policy outcomes, while pods pending with rising attempt duration are throughput outcomes.

Preemption adds a hidden multiplier during bursts. When a high-priority pod preempts lower-priority pods, each eviction creates new scheduling work, status writes and endpoint churn, so a single admission decision can cascade into dozens of API writes. Priority classes are necessary for critical workloads, but unbounded preemption in batch namespaces turns submission bursts into control-plane storms. Bound preemption with quotas per priority class and watch preemption counts beside scheduler attempt duration during load tests.


8. Etcd headroom underneath large Kubernetes clusters

Large Kubernetes clusters stand on etcd write throughput: every pod binding, status update, lease renewal and endpoint change is a Raft proposal, so control-plane scale is bounded by how fast etcd fsyncs and applies entries. APF protects etcd from overload, but no queueing scheme creates write capacity etcd does not have.

Object churn sets the write rate. Each pod generates status updates, each node renews leases, each Service endpoint change rewrites EndpointSlices, and each operator writes status for its resources. At thousands of nodes, background churn alone sustains a substantial proposal rate before any user submits work. Bursts stack on top: a mass rollout or node failure replays thousands of status writes in minutes.

Size etcd for the churn you measure. Track proposal rates, WAL fsync p99 and backend commit latency as cluster capacity signals alongside API metrics, and keep etcd on fast local storage with database size controlled by compaction. Events are a common hidden load: high-churn clusters generate enormous event volume, and shortening event TTL reduces both etcd size and watch traffic. The etcd latency troubleshooting guide covers the storage-side diagnosis when write latency, not APF, is the constraint.

Split etcd when the numbers demand it. Kubernetes supports separate etcd clusters for events and for main objects through --etcd-servers-overrides, which keeps event churn from competing with critical writes. Treat that as an advanced lever for measured event pressure, and validate it with the same fsync and proposal metrics before and after.


9. Multi-tenancy fairness in large Kubernetes clusters

Large Kubernetes clusters shared by many teams need fairness below the priority level: APF distinguishers split queues by user or namespace so one tenant's burst delays its own requests instead of everyone's. Without distinguishers, the loudest tenant sets latency for the whole level.

Apply ByNamespace distinguishers to workload-facing FlowSchemas and ByUser where human and automation identities share a level. Shuffle sharding then assigns each distinguisher value to a subset of queues, so a flooding namespace saturates only its queues while neighbors keep dispatch slots. The effect is visible in queue dumps: one namespace's queue grows while others stay short, which is fairness working as designed rather than a fault to fix by raising shares.

Fairness at the API layer complements, and does not replace, resource quotas. APF governs request rate and concurrency; ResourceQuotas govern how many objects and how much compute a namespace may hold. A tenant can stay inside its API budget while exhausting cluster capacity through object count, or respect quotas while flooding the API with list calls. Large Kubernetes clusters need both controls, plus admission limits on object sizes, because a single multi-megabyte object taxes every watch, list and etcd write that touches its type. The Kubernetes best practices guide covers the quota and limit habits that pair with APF tuning.


10. APF versus legacy inflight limits

API Priority and Fairness replaces the legacy model where --max-requests-inflight and --max-mutating-requests-inflight capped total concurrency with no fairness between request classes. APF keeps those flags as the total budget backstop but divides it by priority level, which is what makes large Kubernetes clusters governable.

Aspect Legacy inflight limits API Priority and Fairness
Granularity One global cap per request class Per-level shares with borrowing
Fairness First come, first served Queues split by user or namespace
Protection None between clients System levels guaranteed capacity
Overload behavior Immediate rejection past cap Queue or reject per level
Observability Inflight gauge only Per-level waits, queues, rejections

Under the legacy model, a single misbehaving client could occupy every inflight slot and starve leader election, which is why APF exists. With APF enabled, the inflight flags still bound total server concurrency, and priority levels divide that total. Raising the flags raises the whole budget and therefore every level's effective share, which helps only when the server and etcd have real headroom behind the queues.

Version hygiene matters. The flowcontrol API reached stable v1 in Kubernetes 1.29, and older beta versions were removed in later releases, so manifests written against flowcontrol.apiserver.k8s.io/v1beta3 must convert to v1 before upgrading. Audit stored FlowSchemas and PriorityLevelConfigurations during upgrade planning; a cluster that cannot apply its APF configuration after an upgrade loses its fairness guarantees at the worst moment.


11. Capacity signals that prove headroom

Large Kubernetes clusters stay healthy when capacity signals trend with headroom: APF waits short, system levels rejection-free, etcd fsync in single-digit milliseconds, scheduler attempt duration stable, and API server memory holding the watch cache without churn. Alert on the trends, not only on failures.

Build the dashboard around five signals. API server request duration p99 by verb shows user-visible latency. APF wait duration and rejections by priority level show allocation pressure. Etcd WAL fsync and proposal rates show the write ceiling. Scheduler attempt duration and pending pods by reason show placement throughput. Watch cache size and LIST rates by user agent show read pressure. The Kubernetes observability stack guide covers assembling these into one control-plane view.

Load-test the control plane before growth forces the lesson. Generate realistic churn in a staging cluster: mass pod creation, rollout storms, node drains, and operator resyncs, while watching the five signals. The point where system-level APF rejections appear or etcd fsync degrades is your real ceiling, regardless of node count. Record it, plan growth against it, and repeat after major version or topology changes. CPU throttling on control-plane pods silently erodes every one of these signals, so check throttling metrics for API server and etcd containers as part of the same review; the Kubernetes CPU throttling guide explains how to read them.

Treat the ceiling as a budget with owners. Assign each platform component a request budget derived from the load test, review the top spenders monthly, and require new operators to declare their watch scope and expected request rate before production rollout. Control-plane capacity in large Kubernetes clusters is a shared resource that degrades by accretion: every new controller looks cheap alone, and the sum is what saturates the API server. Budgeting makes that sum visible while it is still cheap to change.


12. Large Kubernetes clusters troubleshooting matrix and checklist

Large Kubernetes clusters troubleshooting follows the budget chain: APF queues and rejections name the starved level, client metrics name the spender, scheduler metrics separate placement cost from API cost, and etcd metrics set the write ceiling. Fix allocation before adding capacity, and capacity before blaming clients.

Symptom Likely layer First check
Batch submissions starve, system healthy Workload priority level undersized APF wait and rejections by level
One namespace delays all tenants Missing distinguisher on schema Queue dump by namespace
429s in system priority levels Server or etcd undersized Etcd fsync p99, inflight saturation
Pod startup slow during bursts Scheduler binding queued behind API load Scheduler attempt duration phases
LIST latency high, etcd flat Client relist or polling pressure Request totals by verb and user agent
Controller lags with empty APF queues Client QPS limit too low Controller rate limiter wait metrics
Writes slow cluster-wide Etcd storage ceiling WAL fsync and backend commit p99
API server memory pressure Watch cache growth Cache size, LIST rates, object sizes

Final checklist:

  • APF wait, queue and rejection metrics dashboarded per priority level.
  • Workload FlowSchemas use ByNamespace or ByUser distinguishers.
  • Exempt level membership audited and limited to break-glass identities.
  • Priority level shares sized from dispatched-request evidence, changed one at a time.
  • Client QPS for controllers and operators reviewed against server queue evidence.
  • Scheduler attempt duration and pending pods tracked by reason.
  • Etcd fsync, proposal rate and database size alerted as capacity signals.
  • Control-plane load test recorded with the measured ceiling before growth.

Frequently Asked Questions

How does API Priority and Fairness protect large Kubernetes clusters?

API Priority and Fairness classifies requests with FlowSchemas into priority levels, each with its own concurrency share and queues. System traffic such as leader election and node heartbeats keeps guaranteed capacity while bulk workload traffic queues or rejects, so one noisy client cannot starve the control plane.

What is a FlowSchema distinguisher and why does it matter at scale?

A distinguisher splits a priority level's queues by user or namespace through shuffle sharding. Without it, every matched request shares one queue and the loudest tenant sets latency for all. With ByNamespace or ByUser, a flooding tenant saturates only its own queues in large Kubernetes clusters.

Should I raise max-requests-inflight to fix API latency?

Only when the API server and etcd have real headroom. The inflight flags set the total concurrency budget that APF divides between levels, so raising them helps genuine capacity shortages but deepens etcd overload when storage is the constraint. Check APF queues and etcd fsync first.

Why do pods start slowly in large Kubernetes clusters with free nodes?

Pod startup waits on scheduler throughput and API capacity, not only node capacity. Binding writes queue behind other API traffic, and expensive plugins such as inter-pod affinity raise attempt duration on thousands of nodes. Check scheduler attempt duration phases and APF waits for the scheduler's level.

How many nodes can a Kubernetes cluster support?

Kubernetes documents thresholds of 5,000 nodes, 150,000 pods and 300,000 containers, but practical limits depend on churn, watch load and etcd write throughput. A quiet large cluster can outperform a smaller churning one. Measure APF waits, etcd fsync and scheduler duration to find your real ceiling.

What client QPS settings matter most in large Kubernetes clusters?

Controller-manager, scheduler and operator QPS decide how fast components spend the server budget, while per-node kubelet QPS multiplies with node count. Raise a client's QPS only when its APF queues sit empty and its own rate limiter is the constraint; otherwise the queue just moves server-side.

When should etcd be split for events in large Kubernetes clusters?

Split etcd for events when measured event churn competes with critical writes: high proposal rates dominated by events, growing database size and fsync pressure that tracks event volume. The --etcd-servers-overrides flag routes events to a separate etcd cluster, isolating that churn from main object writes.

⚡ KUBERNETES SCENARIO INTERVIEW PREP

Preparing for Senior Platform & SRE Interviews

Practice real-world cluster triage, RBAC debugging, and pod scheduling scenarios in our Kubernetes scenario interview questions hub.

Explore Interview Scenarios →