Node red multiple instances



I have a requirement in which i need to have multiple instances of node red on same machine with different port numbers, different flows. For the same user based on the role defined - flows and palette controls will be displayed. Please clarify


mdashboard-Create multi-users

When you start Node-RED you can use the command-line arguments to point at a different settings file and userDirectory for each instance. Each setting file can specify a different port and flow file name.



Can this be simultaenous, i mean if the user has two roles, he should be able to see the flows associated with both the roles in different url's



A single node-red instance can have multiple users, but they all see the same set of flows - the runtime is not multi-tenant.



Instead of changing settings file, I use the -p command line option to specify the port. I also use nssm on windows for multiple instances. So each service launches for example...

  • node-red -p 1881 -u c:/nr1881
  • node-red -p 1882 -u c:/nr1882
    And so on.

BTW, @knolleary that document you linked to doesn't show the -p option or -t option.

1 Like