Skip to content

Commit 0937f36

Browse files
committed
Workspaces covered
1 parent ab95ddd commit 0937f36

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

docs/admin/architectures/index.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ When determining scaling requirements, consider the following factors:
250250

251251
- `1 vCPU x 1 GB memory x 2 concurrent workspace build`: A formula to determine
252252
resource allocation based on the number of concurrent workspace builds, and
253-
standard complexity of a Terraform template. _The rule of thumb_: the more
253+
standard complexity of a Terraform template. _Rule of thumb_: the more
254254
provisioners are free/available, the more concurrent workspace builds can be
255255
performed.
256256

@@ -280,13 +280,25 @@ for workspace users, administrators must be aware of a few assumptions.
280280

281281
#### Scaling formula
282282

283-
TODO
283+
When determining scaling requirements, consider the following factors:
284+
285+
- `1 vCPU x 2 GB memory x 1 workspace`: A formula to determine resource
286+
allocation based on the minimal requirements for an idle workspace with a
287+
running Coder agent and occasional CPU and memory bursts for building
288+
projects.
289+
290+
**Node Autoscaling**
291+
292+
Workspace nodes can be set to operate in autoscaling mode to mitigate the risk
293+
of prolonged high resource utilization.
284294

285-
- Guidance for reasonable ratio of CPU limits/requests
286-
- Guidance for reasonable ratio for memory requests/limits
295+
One approach is to scale up workspace nodes when total CPU usage or memory
296+
consumption reaches 80%. Another option is to scale based on metrics such as the
297+
number of workspaces or active users. It's important to note that as new users
298+
onboard, the autoscaling configuration should account for ongoing workspaces.
287299

288-
Mention that as users onboard, the autoscaling config should take care of
289-
ongoing workspaces
300+
Scaling down workspace nodes to zero is not recommended, as it will result in
301+
longer wait times for workspace provisioning by users.
290302

291303
### Database
292304

0 commit comments

Comments
 (0)