# Node-Red in conjunction with pm2 in cluster mode context issue

**URL:** <https://discourse.nodered.org/t/node-red-in-conjunction-with-pm2-in-cluster-mode-context-issue/35061>\
**Category:** General\
**Created:** [30 October 2020 08:23 UTC](https://discourse.nodered.org/t/node-red-in-conjunction-with-pm2-in-cluster-mode-context-issue/35061 "2020-10-30T08:23:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![msupra](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/msupra/32/34760_2.png) [@msupra](https://discourse.nodered.org/u/msupra)\
**Post date:** [30 October 2020 18:05 UTC](https://discourse.nodered.org/t/node-red-in-conjunction-with-pm2-in-cluster-mode-context-issue/35061/5 "2020-10-30T18:05:50Z")

</div>

Hi all

Resolved. Add env variable to settings.js:  
process.env.PID = "authentication/resp/"+process.pid;

And then use $(PID) as the topic.

Regards  
Morne

---

_[View the full topic](https://discourse.nodered.org/t/node-red-in-conjunction-with-pm2-in-cluster-mode-context-issue/35061)._
