Code Monkey home page Code Monkey logo

Comments (4)

gjovanov avatar gjovanov commented on July 17, 2024

Hey @harshmaur ,
you are right, autoscaling of Janus within Roomler's stack is not something that is provided outside-the-box. For autoscaling you would need to consider deploying Janus on some cloud provider (AWS, Azure, GCP, ...). You might wanna google the informative Lorenzo's (the author of Janus) presentations about scaling Janus.

At the moment we are deploying Roomler on-prem. And for scaling Janus on-prem you have the option to have a fixed number of janus instances and load balance via sticky session cookie (e.g. roomid):

Hope it helps.

from roomler.

harshmaur avatar harshmaur commented on July 17, 2024

Thanks @gjovanov for the information. I reckon the challenge is routing the traffic to the correct Janus instance, which is the same problem with any stateful application we deploy on cloud.

Are there any other challenge to scaling? I believe the other reason is the number of open ports which is hard to do on a kubernetes based cluster?

from roomler.

gjovanov avatar gjovanov commented on July 17, 2024

Correct @harshmaur ... The end effect is stateful app, at least in terms of routing the user to corresponding Janus instance based on a roomid... This is the simplest approach of scaling via sticky session, for the scenario youv'e mentioned: 1000 rooms with 10 participants each... In the case of large rooms e.g. more than 50 participants than you would need to consider completely different path e.g. via RTP forwarding for routing media traffic from one janus instance to another.

Indeed, large number of open ports is problematic when deployed in either Docker (or Docker Swarm) or Kubernates for both Janus and Coturn. Hence most of the times these services are exposed directly over public IP (without NAT).

You can also check Janus Cloud which tries to solve the routing problem via Janus Proxy/Senitel instances.

from roomler.

harshmaur avatar harshmaur commented on July 17, 2024

Thanks @gjovanov for the insight.

I'll close the issue. :)

from roomler.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.