Home > Enterprise >  Multiple nodered containers with docker and nginx
Multiple nodered containers with docker and nginx

Time:09-04

I have some configuration where users can create nodered instances using docker containers , but i've used one docker container for each instance and i've used nginx as reverse proxy. Thus where i need to know how much containers can be created in one network and if the number is limited how can i increase it ?

CodePudding user response:

There are a few possible answers to your question:

  1. I dont think Nginx will limit the amount of NodeRed instances you can have.
  2. If you are working on 1 machine with 1 IP address you can change the port number for every NodeRed instance so the limit would be at around 65,535 instances (a little lower as a few ports are already used)
  3. If you are using multiple machines (lets say virtual machines) with only 1 port for NodeRed instances, you are limited to the amount of IP addresses in your subnet.
    In a normal /24 subnet (255.255.255.0) there would be 254 IP addresses.
    3.1. You can change your subnet in your local network.
    https://www.freecodecamp.org/news/subnet-cheat-sheet-24-subnet-mask-30-26-27-29-and-other-ip-address-cidr-network-references/
  4. If you are using multiple machines and are using a wide range of available ports, you have nearly no limit on how many instances you can deploy. The limit would be your hardware i think.
  • Related