Forward and Cluster. #4082
Unanswered
HeeJoon-Kim
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Strictly speaking, this is not a bug report but rather a question.
When the "forward" function is utilized, the CPU usage on the Master is greater than on the Slave.
I intended to use "forward" for load balancing by [stream] based on backend directives,
and I expected the Master to perform only forwarding, resulting in very low CPU usage.
When handling 60 RTMP streams, the CPU usage on the Master is triple that of the Slave. Additionally, the Slave is responsible for creating HLS files.
Here is Master and Slave configuration.
[Master]
[Slave]
Is it correct that the Master handles more load than the Slave?
Secondly, when implementing an Origin cluster and performing RTMP Push to the Edge,
even when the Origin generates HLS, the Edge consumes more CPU than the Origin cluster.
Is this situation also accurate?
The environment involves multiple [streams within the same [app], and each [stream] updates the m3u8 file with DISCONTINUITY based on playlist playback.
When using REUSE PORT to generate HLS, different SRS processes encounter errors during cleanup of old ts files.
And, the sequence number does not increase correctly, and sometimes the segment is assigned to a different process, resulting in the forced deletion of the last ts file.
For this structure, could you please advise on the best approach? Thank you! 😊
TRANS_BY_GPT4
Beta Was this translation helpful? Give feedback.
All reactions