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 applicationPostgreSQL
DatabaseTerraform
ProvisionerDashboard
Web UIREST API
APIRedis
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
Deploy multiple Coder server replicas behind a load balancer. PostgreSQL handles state with replication.
Requirements for HA
2+ Coder replicas
Scale horizontallyPostgreSQL with replication
Managed database recommendedLoad balancer
Distribute trafficRedis for caching (optional)
Improves performance at scaleResource 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 devsSmall | 1-100 devsMedium | 100+ devsLarge | |
|---|---|---|---|
| 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 run Terraform to create and destroy workspaces. Choose built-in or external.
Built-in
Recommended for most teams- Simplest setup—no extra process
- Good for most deployments
- Scales with control plane
External
For large or highly regulated teams- Isolate Terraform workload
- Scale provisioners independently
- Advanced security boundaries
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.