Hello,
I try to do the following on a VPS with 2 CPU cores in order to use both cores for delivering web content:
- Get 2 instances of nginx running
- Get 2 instances of Node.js running
- Keep mongoDB as single instance as its supposed to support multicores with threading
Steps Done
worker_processes 2;
and
upstream io_nodes {
ip_hash;
server 127.0.0.1:4567;
server 127.0.0.1:4568;
}
and
proxy_pass http://io_nodes;
"port": ["4567", "4568"],
Save everything, Stop everything, Start everything .. not working
What happens is that I see node.js to start twice as it should but shortly after both close, than this repeats 2x and I end up with no node.js processes at all.
Only nginx works fine with 3 processes of itself.
The nodeBB output log talks something about MongoDB related stuff. I did not change anything with MongoDB at all.
What am I missing ?
Plz note that I on Windows, Node.js 10.1.0.