I have a server with 4 cpu core and 8 gb ram. I have a node app. I'm running my app with PM2 module in cluster mode. It works fine. But since I have 4 cpu core pm2 runs 4 instances. Even when I force it to run more than that, performance stays same or even worse sometimes.When I monitor my app, I realized my app doesnt use more ram than 500MB(at peak times, generally it uses 250 - 300mb ram). So 8gb*0.5gb = 16 node instance. and if I leave 1gb for OS, I'm thinking to run 14 instances.So How can I run multiple node instances in same machine and increase performance.Is this even possible? I'm total noob. If you can guide me, that would be great. Thanks
Submitted August 04, 2020 at 06:23AM by 50KurusVerLanTirrek
No comments:
Post a Comment