Skip to content

Commit 544232d

Browse files
ericpaulsenKatie Hornejawnsy
authored
feat: coderd resource recommendations (#881)
* feat: coderd resource recommendations * Update setup/requirements.md Co-authored-by: Jonathan Yu <jonathan@coder.com> * edit text * edit more text Co-authored-by: Katie Horne <katie@coder.com> Co-authored-by: Jonathan Yu <jonathan@coder.com>
1 parent 3785fa2 commit 544232d

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

setup/requirements.md

+31-6
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,38 @@ description: Learn about the prerequisite infrastructure requirements.
66
Coder is deployed onto Kubernetes clusters, and we recommend the following
77
resource allocation minimums to ensure quality performance.
88

9-
For **basic control services**, allocate at least 2 CPU cores, 4 GB of RAM, and
10-
20 GB of storage.
9+
## Compute
10+
11+
For the Coder control plane (which consists of the `coderd` pod and any
12+
additional replicas) allocate at least 2 CPU cores, 4 GB of RAM, and 20 GB of
13+
storage.
14+
15+
In addition to sizing the control plane node(s), you can configure the `coderd`
16+
pod's resource requests/limits and number of replicas in the Helm chart. The
17+
current defaults for both CPU and memory are the following:
18+
19+
```yaml
20+
resources:
21+
requests:
22+
cpu: "250m"
23+
memory: "512Mi"
24+
limits:
25+
cpu: "250m"
26+
memory: "512Mi"
27+
```
28+
29+
By default, Coder is a single-replica deployment. For production systems,
30+
consider using at least three replicas to provide failover and load balancing
31+
capabilities.
32+
33+
If you expect roughly ten or more concurrent users, we recommend increasing
34+
these figures to improve platform performance (we also recommend regular
35+
performance testing in a staging environment).
1136
1237
For **each** active developer using Coder, allocate additional resources. The
13-
specific amount required per developer varies, though we recommend
14-
starting with 4 CPUs and 16 GB of RAM, then iterating as needed. Developers are
15-
free to request the resource allocation that fits their usage:
38+
specific amount required per developer varies, though we recommend starting with
39+
4 CPUs and 16 GB of RAM, then iterating as needed. Developers are free to
40+
request the resource allocation that fits their usage:
1641
1742
![Workspace resource request](../assets/setup/resource-request.png)
1843
@@ -21,7 +46,7 @@ to determine whether you should change your resource allocation. Accepting a
2146
utilization of RAM of around 50% and CPU of around 70% is a good way to balance
2247
performance with cost.
2348
24-
### Throughput
49+
## Throughput
2550
2651
We recommend the following throughput:
2752

0 commit comments

Comments
 (0)