performance local hosted version
At our office we are trying to get a local server setup for a a couple of devs to use. We are however having a lot of performance issues when we are trying to run our development environment.
When using npm run dev our performance is not acceptable. We are suspecting it might be because of the cpu's single thread performance. Does coder have any recommended CPU's or other hardware requirements to run the workloads smoothly?
Thank you in advance.
Solution:Jump to solution
It's only specifically an issue when running npm run dev. After further investigation we saw our CPU is bad at single threaded workloads which the npm run dev is. When testing it on a system with a different cpu with higher single thread performance
8 Replies
<#1361669156881305803>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
What are the specs of the server? CPU. Memory and Disk.
Where are workspaces being created?
What is your Coder Template? Is it Docker?
Hey thanks for the quick reply, Our server is setup using proxmox with the following specs: 2 x Intel Xeon E5- 2697 V4 - 18-Core 36-Threads 2.30GHz (3.60GHz Boost, 45MB Cache,145W TDP) 8 x 32GB - DDR4 2400MHz (PC4- 19200, 2Rx4) 2 x 400GB - SAS (12G) SSD - Enterprise the workspaces are created locally on the same server with docker, using the default docker coder template Hope this helps.
Nice It does not look like a specs issue then
can you share the difference between performance on the server and when running in a workspace?
Some benchmarks for build times can help
Solution
It's only specifically an issue when running npm run dev. After further investigation we saw our CPU is bad at single threaded workloads which the npm run dev is. When testing it on a system with a different cpu with higher single thread performance
On the server the compilation times were between 10-12 seconds while running it on the other system it got down to 1.5
We don't think it's an issue specifically with coder however we were wondering if you had any other reports about people struggling with nodejs based workloads on self hosted instances
Good to know the root cause. We do not have any such reports that I am aware of.
We use similar Docker based workspace for dogfooding Coder but we use
pnpm
instead of npm
@Phorcys closed the thread.