r/node
7
Posted by2 months ago
= Hosting pm2 managed script on a VPS =

I have a script that runs concurrently aof infinite functions on a server (bots)

I've also tried to run the same script in parallel through pm2, having each function call on a different process which is kinda easy to manage

Now, i would like to store this script on a VPS (still need to document myself a little bit more on this) but a question rose up: will running multiple instances of a process end up in much more memory consume and by consequence the need to pay for a pricier VPS ?
I can potentially run hundreds of instances, so I guess that this might be a little too much to have a process for each one

Should i stick with concurrency in order to save up VPS memory ?
90% Upvoted