Simulating Multiuser Environment


#1

Hi,

What are possible approaches used with the current software architecture for simulating multi user environment for both dashboard and flow editor?

Thank yo in advance!

Best Regards,
Muhammad Rohan Ali Asmat


#2

What do you mean by simulating it? That could mean lots of different things so its hard to give an answer given the dashboard is not a multiuser environment.


#3

For example,

  1. Each user having their own node-red instance with configured admin settings, similar to FRED but open source and which could be done dynamically?

I found redzilla but isn't working as expected!

  1. Or some form of flow or recommendation to simulate a case where there are multiple users where each should have their own flow and dashboard which can be sclaed up/down dynamically?

Best Regards,
Muhammad Rohan Ali Asmat


#4

Hi,

Any suggestions or any leads to a fork that does so?

Best Regards,
Muhammad Rohan Ali Asmat


#5

Would a composite docker application not be an option where you have multiple node-red containers? So you have multiple node-red instances and each instance has its own dashboard.


#6

How do I get more than one instance?


#7

Hi Janvda,

Sure that is a possible option but currently I don't find a solution which implements in a way that instances can be grown dynamically and yet it is working fine, can you point me to anything available!

The following two options are interesting:

  1. https://github.com/muka/redzilla, this helps you create you n number of new node-red instances but I don't find the node-red environment working fine in this case.
  2. https://github.com/janakiramm/docker-node-red This one is not working at all for me.

In case you have something to share, or you get up and running with them. It would be interesting to know the details.

Best Regards,
Muhammad Rohan Ali Asmat


#8

FYI here an example of composite docker application running 2 node-red instances on a raspberry pi:

Just some questions:

  1. How dynamic should it be ?
  2. Why do you want it to be dynamic ? What is the purpose ? (Is it for a class ?)
  3. What are the number of instances you (maximally) need ?
  4. On what hardware do you want it to run ?

#9

Hi @janvda,

Thanks for an update, currently I am following the same approach but what I meant was to grow the instances of node-red as per required.

  1. Can go up to n Node-RED instances
  2. Simulating Multi user environment.
  3. N
  4. No specific hardware, want to provide it as a web application!

#10

Funny response :grinning:

I think you need to share a bit more about the context of your request.
Having a "multi user web application" is one thing, having also a multi user node-RED flow editor is quite a different thing. I would think that the latter can only be addressed by having multiple node-RED instances.


#11

Since the start, we use Docker to run flows as separate containers. Soring Docker files, flows and settings.json in a Github. Add the pipeline of your liking, and you would have the "multiuser" experience.


#12

The second link does not work for me either.
I can clone the repo but build the docker image is not working.
When I type in: docker build -t docker-node-red .
the error message is: bash: docker: Command not found


#13

Have you installed docker?


#15

Now I installed Docker :smiley:

now when i typed in. sudo docker build -t docker-node-red .
this errors arrives:


#16

I am not sure where you docker build command comes from.
Have you checked https://nodered.org/docs/platforms/docker ?

Note also that this forum topic is not specifically about deploying node-red in docker.
So if you have problems with that I think it is best to open a new topic in the node-red forum where you can detail your error.


#17

My Dockerfile looks like this:

FROM nodered/node-red-docker:v8
RUN npm install node-red-node-mongodb && npm audit fix
COPY settings.js /data/settings.js
COPY flows.json /data/flows.json


#18

@ziggemannen please report your problem under a new forum topic.


#19

Did you find any solution. i have same requirement.
And how do you implement this using redzilla? any leads.


#20

HI @sam,

I am still trying to find a good solution.

Thank you in advance!

Best Regards,
Muhammad Rohan Ali Asmat


#21

what are the ways did you find or you assume that can make a multiuser node-red. @RohanAsmat