Live webinar: Building Autonomous Agent Workflows You Can Trust, Dec 15Register now

Coder Control Plane

Lightweight orchestration—metadata and state, never source code

What it does

The control plane handles user authentication, workspace orchestration, template management, and audit logging. It's lightweight—most compute happens in workspaces.

Components

Note: The Coder server is stateless. All state lives in PostgreSQL. Scale horizontally by adding replicas.

Coder Server

Core application

PostgreSQL

Database

Terraform

Provisioner

Dashboard

Web UI

REST API

API

Redis

Cache (optional)

What Coder stores / doesn’t store

Stored

  • User records — Synced from IdP
  • Workspace metadata — Name, owner, template, status
  • Template definitions — Terraform code and variables
  • Audit logs — Who did what, when
  • Session tokens — Temporary auth tokens
  • Metadata only, not code — Coder stores workspace metadata (name, status, owner) but never stores your source code or workspace file contents. Code stays in git and workspace volumes.

Never stored

  • Source code — Lives in git, not Coder
  • Secrets — Fetched from your vault at runtime
  • Workspace file contents — Stored on workspace volumes
High availability

Deploy multiple Coder server replicas behind a load balancer. PostgreSQL handles state with replication.

Requirements for HA

2+ Coder replicas

Scale horizontally

PostgreSQL with replication

Managed database recommended

Load balancer

Distribute traffic

Redis for caching (optional)

Improves performance at scale

Resource footprint

The control plane is lightweight. Size it based on your team.
Note: The control plane is lightweight. A 4 vCPU / 8 GB instance can handle thousands of developers.

<100 devsSmall1-100 devsMedium100+ devsLarge
Single instance is fine+ Redis for caching
CPU2 vCPU4 vCPU
RAM4 GB8 GB
Replicas13+
Provisioners

Provisioners run Terraform to create and destroy workspaces. Choose built-in or external.

Inside Coder server

Built-in

Recommended for most teams
  • Simplest setup—no extra process
  • Good for most deployments
  • Scales with control plane
Separate process

External

For large or highly regulated teams
  • Isolate Terraform workload
  • Scale provisioners independently
  • Advanced security boundaries
FAQs

FAQs

PostgreSQL 13 or later. You can use a managed database (AWS RDS, GCP Cloud SQL, Azure Database) or self-hosted. For HA, use PostgreSQL replication or a managed HA setup.

Yes. Deploy a single control plane in one region with workspace clusters in multiple regions. The control plane orchestrates all regions. For disaster recovery, deploy a standby control plane in another region with database replication.

Back up your PostgreSQL database. That's all the state. Workspaces can be recreated from templates. For full recovery, restore the database backup and deploy the Coder server.

The control plane needs HTTPS (port 443) for the dashboard and API. Workspaces connect to the control plane via WebSockets (also port 443). No inbound access to workspaces is required.

Very lightweight. A 4 vCPU / 8 GB instance can handle thousands of developers. Most compute happens in workspaces, not the control plane. The control plane only handles metadata and orchestration.