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:Jump to solution
NodeJS itself only uses 1 thread (or core)
unless you make it use multiple cores by using workers or something like that...
4 Replies
Project ID:
3747f720-8c9c-4d81-9b13-1e420ceabd6c
3747f720-8c9c-4d81-9b13-1e420ceabd6c
Solution
NodeJS itself only uses 1 thread (or core)
unless you make it use multiple cores by using workers or something like that
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