l7mp / stunner

A Kubernetes media gateway for WebRTC. Contact: info@l7mp.io
https://l7mp.io
MIT License
737 stars 56 forks source link

SRS integration? #131

Closed slps970093 closed 5 months ago

slps970093 commented 7 months ago

Is it possible to use SRS integration to solve WebRTC scaling issues in AutoScaling

https://ossrs.net/lts/zh-cn/

levaitamas commented 7 months ago

Hi @slps970093, We have not considered integrating STUNner with SRS yet. If I understood SRS correctly, they are focusing on livestreaming and has a nice selection of supported protocols. The WebRTC integration seems kinda limited for me and might lack TURN support?! Anyway if you somehow manage to configure TURN servers for SRS, STUNner can definitely there to help you to scale your workloads in k8s.

slps970093 commented 7 months ago

Hi~ @levaitamas Because my purpose is to expand the webrtc server. According to my understanding, there will be problems with load balancing when k8s pod replicas are 2 or more. Assume that my srs webrtc port is 8000 but the internal IP of each pod is different. I don’t know. Can this repo help me expand?

levaitamas commented 7 months ago

Absolutely, scaling media workloads is one of the killer features of STUNner. Let me refer you to the docs to read more about the architecture: https://docs.l7mp.io/en/stable/DEPLOYMENT/#media-plane-deployment-model

rg0now commented 7 months ago

Also, the STUNner scaling guide might be of interest here.

rg0now commented 5 months ago

This issue has been stale for a couple of months, closing it for now. Feel free to reopen if anything new comes up.