Friday 26 July 2019

NodeJS in Cluster Mode - Help

I just saw that I could use NodeJS in cluster mode,So I went ahead to see if it actually makes a difference. And, it did not. What am I doing wrong?I test an API of mine, I tested using NPM module loadtest.loadtest http://0.0.0.0:5000/someAPI -t 20 -c 10and I barely got any difference when starting server in cluster mode or as a single process. I used pm2 start process.js -i max to start in Cluster mode and pm2 start process.js to run as single process.Why don't I see a difference in the results? Should I increase the transactions and concurrent requests?

Submitted July 26, 2019 at 11:46AM by kjroger94

No comments:

Post a Comment