Node red multiple instances

#1

Hi

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

0 Likes

mdashboard-Create multi-users
#2

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.

https://nodered.org/docs/getting-started/running#command-line-usage

0 Likes

#3

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

0 Likes

#4

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

0 Likes

#5

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