Regarding using SRS in production #3720
Replies: 9 comments
-
I understand there SRS do not support multi-process out of the box. Another solution is using of "SO_REUSEPORT".. but I unable to find an example configuration which uses this. |
Beta Was this translation helpful? Give feedback.
-
It depends on the usage you want. If you want to use SRS as an edge server (serving the streams coming from an origin server) thats ok to have multiple instances per host, behind a loadbalancer. If you want to use it as origin, you might only have one instance running on that PORT. |
Beta Was this translation helpful? Give feedback.
-
We are planning to use it as edge.. |
Beta Was this translation helpful? Give feedback.
-
Yes or HAPROXY, but if you are using HLS, otherwise you need to use a TCP loadbalancer, to be able to reverse proxy a TCP connection of RTMP, haproxy and nginx support tcp reverse proxying also. |
Beta Was this translation helpful? Give feedback.
-
I already have NLB there. my problem is more of instance level where I have multiple cores .. I guess nginx in front will work fine. but I better use nginx rtmp module then. |
Beta Was this translation helpful? Give feedback.
-
I tried to using https://github.com/ossrs/srs-dolphin to handle multiprocess for SRS, but find out for 5000 connection whole system opens around 21000 PORT. I do not know what I was doing wrong. |
Beta Was this translation helpful? Give feedback.
-
We read your comments in srs github repository about multi core process. We need a rtmp live streaming solution for mobile phones with low latency and server cluster. We now work in test mode with srs but have several latency and buffer problems with mobile devices and need to scale to aws servers but using all the cpu cores. Do you fund solution for this questions? Regards |
Beta Was this translation helpful? Give feedback.
-
I am looking for this concept to. Offers streaming low latency using aws. Exist solutions for multi core? |
Beta Was this translation helpful? Give feedback.
-
For multiple core, you can start an origin server and multiple edge server, each edge server you can start many processes. |
Beta Was this translation helpful? Give feedback.
-
Hi,
We are evaluating SRS to put in production.
We are having following questions
I am not able to find answers to above questions in the documentation.
I might have missed that.
And thank you for documentation in English.
Beta Was this translation helpful? Give feedback.
All reactions