Limit workspace CPU and memory resources
Configuration
Coder v2.19.0 self hosted, Terraform 1.9.8, DinD with Sysbox
current main.tf
Does not limit cpu, does not impose a hard limit, but adjusts the priority of the container relative to others.
main.tf desired, but in error
Error returned
Question
Does anyone know how to limit the CPU and memory resources of workspaces with Terraform? THANKS a lot.
5 Replies
<#1336645061030449163>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
(@Monnomcjo)
Unfortunately the cpu property does not exist. I see this subject is covered in other posts. And that there is no resolution without workaround.
yes, you can only set
cpu_set
or cpu_shares
unfortunately Docker dose not provide better control than this, if you really need to throttle workspaces you should be looking into Kubernetes