R
Railway6mo ago
Kurdiez

Does NodeJS service take advantage of multiple CPU cores?

We are not doing anything fancy. Just vanilla NodeJS monolith server running in one of Railway's service. This particular process won't take advantage of the multiple CPU cores provided to our service by default right? Just because of the way NodeJS is.
Solution:
NodeJS itself only uses 1 thread (or core) unless you make it use multiple cores by using workers or something like that...
Jump to solution
4 Replies
Percy
Percy6mo ago
Project ID: 3747f720-8c9c-4d81-9b13-1e420ceabd6c
Kurdiez
KurdiezOP6mo ago
3747f720-8c9c-4d81-9b13-1e420ceabd6c
Solution
Attacler/Bart
Attacler/Bart6mo ago
NodeJS itself only uses 1 thread (or core) unless you make it use multiple cores by using workers or something like that
Prodigga
Prodigga6mo ago
yep this has been my experience too, the machine will grind to a halt once it hits 1 vcpu, unable to go higher as a 'dirty fix' I just spun up more replicas
Want results from more Discord servers?
Add your server