kraken icon indicating copy to clipboard operation
kraken copied to clipboard

Scalability with limited amount of UDP port for kraken

Open sooxt98 opened this issue 3 years ago • 5 comments

I saw your blog post, it stated each participants will consume 1 udp port on kraken, which means i could only have maximum of 48127 participants online simultaneously (common available udp port range 1024 to 49151), How to scale it up to allow more than that amount of users?

Here's the idea i got, make a daemon that actively monitor the usage of the kraken UDP port availability, and magically use a Load Balancing to distribute the traffic to others instance

sooxt98 avatar May 19 '21 05:05 sooxt98

hey bro can u help me install kraken on vps nginx

arabtion avatar May 19 '21 18:05 arabtion

Yes, we use many instances to balance the traffic. That we have a monitor API to monitor all the kraken instances server load, and direct participants in the same room to the same instance.

cedricfung avatar May 20 '21 09:05 cedricfung

@cedricfung Thanks for the quick reply, is there any guide in using the monitor feature of kraken?

sooxt98 avatar May 20 '21 09:05 sooxt98

The monitor is another piece of code, that monitors the instance resource usage using Google Compute Engine API. We didn't open source those code yet, because they are coupled with our main repo. And we have the plan to make the monitor open source, but busy at other stuffs.

cedricfung avatar May 20 '21 09:05 cedricfung

@sooxt98 Why do I not see anyone? I checked in twice to make sure, but there is something wrong look screen https://prnt.sc/1281pou please help me all ppl not know this problem

arabtion avatar May 20 '21 09:05 arabtion