Pidoku

Platform Overview: Control Plane vs Data Plane

Module 21 Lesson 21.a 1h Difficulty 3/5

Prerequisites 20.a, 20.f


Before you start: words you need#

WordPlain meaning
PlatformShared software that lets many teams run many models on one pool of GPUs, instead of each team running its own.
Data planeThe parts that touch every request: gateway, router, engines. They must be fast and always up.
Control planeThe parts that decide what the data plane should do: which models run where, how many replicas, which quotas. They change things every few minutes, not every request.
ReplicaOne running copy of a model server, on one or more GPUs.
Routing tableThe list the router uses: “model X is served by these replicas”.
ReconcileA controller’s loop: compare what should be running with what is running, and fix the difference. Kubernetes works this way.
Last-known-goodThe most recent configuration that was accepted and worked. The data plane keeps using it when new configuration is missing or bad.

1. What is it?#

An inference platform has two halves with very different jobs:

DATA PLANE     handles every request. Must be fast, simple and always up.
CONTROL PLANE  decides what the data plane does. Can be slower, more complex,
               and briefly unavailable.
                    CONTROL PLANE                    DATA PLANE
                    (changes per minute or hour)     (per request)
                    ┌──────────────────────┐        ┌──────────────────┐
                    │ model registry       │        │ gateway          │
                    │ placement scheduler  │───────▶│ router           │
                    │ capacity manager     │ config │ engines          │
                    │ autoscaler           │        │                  │
                    │ quota manager        │        │                  │
                    │ deployment controller│        │                  │
                    └──────────────────────┘        └──────────────────┘
                    if this is down for 5 min:      if this is down for 5 s:
                    nothing changes, but            users see errors
                    traffic keeps flowing

The one property that matters most: the data plane must keep working when the control plane is unavailable. That is the difference between a platform that degrades and one that falls over.

This module builds the platform layer on top of single-server serving (Module 20): the registry (21.b), Kubernetes and GPUs (21.c, 21.d), placement (21.e), tenants (21.f), routing (21.g, 21.h), gateways (21.i), distributed serving frameworks (21.j), cascades (21.k), fleet management (21.l) and the order to build it all in (21.m).

flowchart TB
  U["Users"] --> GW
  subgraph CP["CONTROL PLANE - slow path, decides"]
    REG["Model registry"] --> CTL["Controllers / reconcilers"]
    CTL --> SCALE["Autoscaler"]
    CTL --> CFG["Routing + quota config"]
  end
  subgraph DP["DATA PLANE - hot path, serves"]
    GW["Gateway"] --> RT["Router"] --> ENG["Engine replicas"] --> GPU["GPUs"]
  end
  CFG -.->|"config push"| GW
  CFG -.->|"config push"| RT
  SCALE -.->|"replica count"| ENG
  ENG -.->|"metrics"| SCALE

  class REG,CTL,SCALE,CFG queue
  class GW,RT,ENG,GPU compute
  class U neutral

2. Why does it matter?#

The two halves make different kinds of decisions:

The control plane makes EXPENSIVE, SLOW decisions:
  - which models run on which GPUs     (minutes to carry out: weights must load)
  - how many replicas of each          (minutes)
  - quota allocations                  (policy, changes rarely)

The data plane makes CHEAP, FAST decisions:
  - which replica gets this request    (microseconds)
  - is this tenant over quota          (microseconds, from cached state)
  - admit or reject                    (microseconds)

Mixing them up goes wrong in one of two ways:

  • the data plane becomes slow, because it calls the control plane for every request, or
  • the control plane becomes a single point of failure, because it sits in the request path.

The most common architectural mistake is a per-request lookup to a central service. It adds latency to every request and turns that service into a hard dependency. Push the state to the data plane and let it cache.


3. Simple analogy#

Air traffic control and the aircraft.

The tower (control plane) assigns routes, altitudes and landing slots, on a timescale of minutes. If the tower loses radio for two minutes, aircraft carry on along their cleared routes.

The aircraft (data plane) flies second by second. It has its clearance on board and can finish the leg without further instructions.

An aircraft that needed continuous instructions to stay in the air would be a bad design. So is a data plane that needs the control plane for every request.


4. Tiny example: three bad pushes and an outage that did not happen#

A router holds a routing table and receives new versions from the control plane. The program in section 6 sends it five updates:

push 1  a new replica is added            → accepted
push 2  control plane unreachable         → keep the current table
push 3  a bug pushes an empty table       → rejected, keep the current table
push 4  a bug drops the "chat" model      → rejected, keep the current table
push 5  a correct new table               → accepted

Throughout, chat requests keep finding replicas. Without the validation in pushes 3 and 4, a healthy control plane with one bug would have caused a total outage.


5. Technical explanation#

What goes where#

CONTROL PLANE
  Model registry              what models exist, their configs and artifacts   (21.b)
  Placement scheduler         which model runs on which nodes                  (21.e)
  Capacity manager            how many replicas; scaling decisions             (20.g, 23.d)
  Deployment controller       rollouts, canaries, rollbacks                    (20.j, 23.g)
  Quota manager               tenant allocations: the POLICY                   (21.f)
  Configuration distribution  pushing config to the data plane
  Cost accounting             turning usage into bills                         (23.c)
  Fleet health                node status, cordoning, draining                 (21.l)

DATA PLANE
  Gateway                     auth, rate-limit ENFORCEMENT, validation         (21.i)
  Router                      replica selection                                (21.g, 21.h)
  Engines                     the inference itself                             (Module 15)
  Local caches                model→replica map, quota state, auth tokens

THE INTERFACE BETWEEN THEM
  routing table               control → data, pushed
  quota policy                control → data, pushed
  health and load metrics     data → control, scraped
  usage records               data → control, streamed

The interface in each direction#

CONTROL → DATA (configuration)
  routing table: model_id → [replica endpoints, weights, capabilities]
  quota policy:  tenant → limits
  feature flags

  DELIVERY: push (watch / subscribe), with a local cache.
            The data plane uses its last-known-good config if the
            control plane is unreachable.

DATA → CONTROL (telemetry)
  per-replica load (KV cache use, batch size, queue depth)
  usage records (tokens by tenant)
  health status

  DELIVERY: scrape (Prometheus) or push (streaming). Losing a few samples is fine.

Last-known-good is the whole point. If the control plane is down, the data plane keeps routing with the config it has. New deployments wait; existing traffic is served.

How the Kubernetes-native stack splits#

In a 2026 Kubernetes stack the split is visible in the components:

PlaneKubernetes-native examples
ControlThe API server and controllers; operators such as KServe, the llm-d and Dynamo operators, Kueue or KAI Scheduler (21.e); the GPU Operator (21.c)
DataEnvoy-based gateways; the Gateway API Inference Extension’s endpoint picker (21.g, 21.j); kubelet and the engine pods
InterfaceCustom resources (InferencePool, HTTPRoute, deployments) and Envoy’s xDS configuration protocol

Kubernetes itself follows the rule: if the API server goes down, kubelets keep running the pods they already have, and Envoy keeps the last config it received over xDS. New scheduling stops; traffic does not.

Build or adopt#

COMPONENT              BUILD?   OR USE
Model registry         maybe    MLflow, Hugging Face Hub, OCI registry + metadata DB (21.b)
Placement scheduler    rarely   Kubernetes scheduler + Kueue / KAI Scheduler / Volcano (21.e)
Capacity manager       maybe    KEDA or the framework's planner + custom metrics (20.g)
Deployment controller  no       Argo Rollouts, Flagger, KServe, framework operators
Gateway                rarely   Envoy-based AI gateways, LiteLLM, or custom (21.i)
Router                 adopt first, extend   the Inference Extension endpoint picker,
                                llm-d, Dynamo, SGLang's router (21.g, 21.j)
Engines                NO       vLLM, SGLang, TensorRT-LLM (15.f)
Quota manager          maybe    Redis + custom logic, or the gateway's token limits

In 2024 the router was the component most worth building yourself, because no off-the-shelf load balancer understood KV caches. In 2026 open endpoint pickers do prefix- and load-aware scoring, so adopt one and extend it with plugins before you write your own. The engine remains the component least worth building (15.f).


6. Under the hood#

The data plane’s view of the control plane is a cached table, swapped atomically, validated before it is accepted, and never consulted over the network on the request path.

Go
// lastgood.go — a data plane that keeps serving when the control plane fails or lies.
package main

import (
	"errors"
	"fmt"
)

// Table maps a model name to the replica addresses that serve it.
type Table struct {
	Version int
	Routes  map[string][]string
}

// validate rejects tables that would cause an outage if accepted.
func validate(old, next Table) error {
	if len(next.Routes) == 0 {
		return errors.New("empty table")
	}
	for model := range old.Routes {
		if len(next.Routes[model]) == 0 {
			return fmt.Errorf("model %q would lose every replica", model)
		}
	}
	if next.Version <= old.Version {
		return errors.New("stale version")
	}
	return nil
}

type DataPlane struct{ current Table }

// Apply is called by the config watcher. A bad push is refused, not obeyed.
func (d *DataPlane) Apply(next Table, err error) {
	switch {
	case err != nil:
		fmt.Printf("  push failed (%v): keep v%d\n", err, d.current.Version)
	case validate(d.current, next) != nil:
		fmt.Printf("  push v%d rejected (%v): keep v%d\n", next.Version, validate(d.current, next), d.current.Version)
	default:
		d.current = next
		fmt.Printf("  accepted v%d\n", next.Version)
	}
}

// Lookup never calls the control plane.
func (d *DataPlane) Lookup(model string) []string { return d.current.Routes[model] }

func main() {
	dp := &DataPlane{current: Table{1, map[string][]string{"chat": {"10.0.0.1", "10.0.0.2"}}}}
	pushes := []struct {
		t   Table
		err error
	}{
		{Table{2, map[string][]string{"chat": {"10.0.0.1", "10.0.0.2", "10.0.0.3"}}}, nil},
		{Table{}, errors.New("control plane unreachable")},
		{Table{3, map[string][]string{}}, nil},                     // a bug pushes nothing
		{Table{4, map[string][]string{"code": {"10.0.1.1"}}}, nil}, // a bug drops "chat"
		{Table{5, map[string][]string{"chat": {"10.0.0.3"}, "code": {"10.0.1.1"}}}, nil},
	}
	for i, p := range pushes {
		fmt.Printf("push %d\n", i+1)
		dp.Apply(p.t, p.err)
		fmt.Printf("  chat -> %v\n", dp.Lookup("chat"))
	}
}

Output:

push 1
  accepted v2
  chat -> [10.0.0.1 10.0.0.2 10.0.0.3]
push 2
  push failed (control plane unreachable): keep v2
  chat -> [10.0.0.1 10.0.0.2 10.0.0.3]
push 3
  push v3 rejected (empty table): keep v2
  chat -> [10.0.0.1 10.0.0.2 10.0.0.3]
push 4
  push v4 rejected (model "chat" would lose every replica): keep v2
  chat -> [10.0.0.1 10.0.0.2 10.0.0.3]
push 5
  accepted v5
  chat -> [10.0.0.3]

In a real router the table sits behind an atomic.Pointer, so lookups never take a lock, and the watcher records the table’s age as a metric. Retiring a model on purpose then needs an explicit “delete model” record, so that removal is a deliberate act rather than something a bug can do.


7. Performance implications#

  • Every millisecond in the data plane is paid by every request. A 2 ms remote lookup on a request with a 200 ms time to first token is 1% of latency; on a cached short prompt it can be 10%. A local map lookup costs nanoseconds.
  • Load metrics must be fresher than the routing table. Which replicas exist can be minutes old; how busy they are should be at most a few seconds old (21.g).
  • The control plane can be slow on purpose. Batching changes, rate-limiting churn and waiting for health checks all make it safer, and none of them touch request latency.

8. Production implications#

  • Draw the line explicitly. Write down which components are control plane and which are data plane, and which are on the request path.
  • Test control-plane failure. Kill it in a staging environment and confirm traffic continues. Note what breaks first (usually autoscaling).
  • Never call the control plane per request. Cache and push.
  • Validate config on both sides. The control plane checks before pushing; the data plane refuses obviously broken config such as an empty table.
  • Version config and keep rollback one command away. Roll config changes out gradually, like code.
  • Run every data-plane component redundantly. One gateway or one router pod is a single point of failure.
  • Keep the data plane simple. Complexity there costs latency on every request and availability for everyone.

Failure modes#

CONTROL PLANE DOWN
  ✓ existing traffic continues (cached routing table)
  ✗ no new deployments, no autoscaling
  ✗ quota state not reconciled (data plane enforces locally)
  → acceptable for minutes to hours

DATA PLANE COMPONENT DOWN
  gateway down    → total outage for that region
  router down     → total outage, unless the gateway can route directly
  one engine down → 1/N of capacity lost
  → run several instances of each

CONFIG PUSH BROKEN (control plane up, pushing bad config)
  → THE DANGEROUS ONE. A bad routing table can take everything down.
  → validate before pushing, roll config out gradually, version it,
    allow instant rollback, and have the data plane refuse invalid config

9. Common mistakes#

  1. Per-request calls to a central service. Latency on every request and a hard dependency.
  2. No local cache of the routing table. A control-plane outage becomes a total outage.
  3. Control plane and data plane in one process. They need different availability, and one restart takes both down.
  4. Unvalidated config pushes. One bad push takes everything down.
  5. Building the engine. (15.f.)
  6. Writing a router from scratch in 2026 before trying the open endpoint pickers and their plugin interfaces.
  7. Too much logic in the data plane. Every millisecond is multiplied by every request.

10. Hands-on exercise#

  1. Draw the boundary. For a platform you know, list every component and mark it control or data plane. Which ones are on the request path? Are any control-plane services called per request?
  2. Run lastgood.go. Add a sixth push that keeps chat but changes every address to an unreachable one. Add a validation rule that catches it (for example, “at least half the new replicas must pass a health check”).
  3. Test control-plane failure. In a test cluster, scale the control-plane components to zero and keep sending traffic. How long until something breaks? What breaks first?
  4. Measure the cost of a lookup. Compare a per-request HTTP call to a local service with a map lookup, at 1,000 requests per second. How much latency does the call add at p50 and p99?

11. Interview questions#

  1. What is the difference between the control plane and the data plane, and why does it matter for an inference platform?
  2. What must still work when the control plane is unavailable?
  3. Why should you never call a central service per request?
  4. What is the dangerous failure mode of a healthy control plane, and how do you defend against it?
  5. Which platform components would you build and which would you adopt in 2026, and why has the answer for the router changed?
  6. Name the control-plane and data-plane pieces of a Kubernetes stack that uses the Gateway API Inference Extension.

12. Further reading#

Checked on 12 November 2026.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in