As the documentation says one worker can typically handle over ~500 consumers, so I want to use this setting to expand the number of person in the same room.
I set up an environment as following step:
Create a router on two different workers(each worker has 18 ports.)
Using PipeToRouter to communicate two routers
When 3 person join in each router (totally 6 person), and the 7th person join the room. The system told me that the port is not enough.
As this scenario, the following questions came to my mind
Yes 1 consumer and 1 producer, you produce from one router and consume on another router so it 1 producer, 1 consumer is involved in pipetransport on the routers respectively. Check my topic regarding this for clarification:
I am not aware of such thing and you don’t need to observe it, just go with max producers/consumers per worker as per you machine and then estimate the rest from it.
Yes it is ok.
This is subjective to the machine you are using, check this topic for further clarification:
All of these use CPU resources, and regarding the port it is the transport which occupies port.
Yes you can have n number of person in one meeting if your architecture supports it.
I think you are more concerned about the port usage, and are worried if the ports can get short. No need to worry about it, in latest version of mediasoup you don’t need to specify port range, you just specify one port and everything happens on that, check here: