You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to understand how the CPU usage is of a running NextJS application after next start. I found in the code experimental.cpus, I've seen some os.cpus() calls in the code, but it is not fully clear to me how much CPUs a running nextjs app can or will use.
I'm trying to fune-tune my production configuration when running NextJS in a docker container, and I'm wondering if I can better assign it 1 vCPU or that I can better give it 2 or 4 vCPUs. Of course this might relate to the amount of memory assigned too, but let's say ideally I would like to have the highest event loop and a minimum CPU time per tick.
Could someone shed a light on this? Is experimental.cpus documented somewher? I was unable to find it but I might not have searched deep enough haha.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I was trying to understand how the CPU usage is of a running NextJS application after
next start
. I found in the codeexperimental.cpus
, I've seen someos.cpus()
calls in the code, but it is not fully clear to me how much CPUs a running nextjs app can or will use.I'm trying to fune-tune my production configuration when running NextJS in a docker container, and I'm wondering if I can better assign it 1 vCPU or that I can better give it 2 or 4 vCPUs. Of course this might relate to the amount of memory assigned too, but let's say ideally I would like to have the highest event loop and a minimum CPU time per tick.
Could someone shed a light on this? Is
experimental.cpus
documented somewher? I was unable to find it but I might not have searched deep enough haha.(running NextJS 14)
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions