---
title: "Coder Control Plane | Coder"
description: "Lightweight orchestration—metadata and state, never source code"
image: "https://coder.com/og/explore/how-coder-works/control-plane"
canonical: "https://coder.com/explore/how-coder-works/control-plane"
---

[Coder provides](https://coder.com/explore/how-coder-works)

# 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 devs Small | 1-100 devs Medium | 100+ devs Large |
| --- | --- | --- | --- |
|  | Single instance is fine | Most common | + Redis for caching |
| CPU | 2 vCPU | 4 vCPU | 4 vCPU |
| RAM | 4 GB | 8 GB | 8 GB |
| Replicas | 1 | 2-3 | 3+ |

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

### What database does Coder use?

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.

### Can the control plane be deployed in multiple regions?

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.

### How do I back up Coder?

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.

### What are the network requirements?

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.

### How lightweight is the control plane?

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.

## Ready to learn more?

[Try Open Source](https://coder.com/docs/install)

[Book a demo](https://coder.com/demo) [Contact sales](https://coder.com/contact/sales)
