Search code examples
node.jsexpressnode-cluster

How to view which cluster worker responded nodejs?


How can someone view which cluster worker responds each time a request is made to the server, in the console.log? I am using express.


Solution

  • Ok got it.. simply add the console.log(process.pid) where I handle the requests and that was it :)