Load Balance multiple RTMP Servers to Horizontally Scale Streaming (Node Media Server and HAProxy)

Load Balance multiple RTMP Servers to Horizontally Scale Streaming (Node Media Server and HAProxy)

Hussein Nasser

3 года назад

30,831 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@firojsiddiki7674
@firojsiddiki7674 - 25.09.2023 14:53

well presented. it helped a lot. thank you so much

Ответить
@sankaranarayananp8407
@sankaranarayananp8407 - 09.09.2023 23:14

Good tutorial ! Impressive 👍😍. But I have some doubts. In production, how can I decide how many servers I have to create based on the users count ?.

Ответить
@ronanramos3773
@ronanramos3773 - 30.05.2023 04:40

Is possible agregate the analytics data from all rmtp servers of the ha proxy in only one? its cool to have HA and high demand scalability, but how to merge all stats of the all server nodes? thank you!

Ответить
@brunosacramentoguapyassu346
@brunosacramentoguapyassu346 - 28.05.2023 14:17

I love you

Ответить
@yayin5929
@yayin5929 - 21.01.2023 17:58

Wondering how to apply this in production

Ответить
@need5868
@need5868 - 15.11.2022 20:06

can you help setup my server ?

Ответить
@hamzamuazzam5368
@hamzamuazzam5368 - 20.10.2022 14:17

KING

Ответить
@Gigabyteserviceofficial
@Gigabyteserviceofficial - 11.10.2022 02:26

You did the scaling for lareg number viewers are there but you didn't setup loadblacing for large number of streamers, there is relay server but I think this will increase the latency, can't we use Nginx as Revers proxy for rtmp protocol if yes can you please share the config for that?

Ответить
@tahakherraf28
@tahakherraf28 - 19.09.2022 23:17

please i have 2 questions:
1)i want to scale horiz servers that will be consumed by watchers but how can i add a new server instance in relay push tasks??
2) in doc i found pull mode can i use pull mode from servers to fetch the stream that i want from relay ???
thank youuu

Ответить
@Speeddevilx
@Speeddevilx - 03.08.2022 04:38

how do i set it up so i can stream from outside my network to the server, I want to make it my irl bitrate control with NOALBS.

Ответить
@lewishousten5455
@lewishousten5455 - 30.06.2022 22:06

I configured relay and the haproxy to load balance streams. However, when I load up the streams in VLC or web browser, round robin doesn't happen. All streams stay on Server1. Why aren't they being routed to Server2. Anyone know why?

Ответить
@dabbopabblo
@dabbopabblo - 29.04.2022 23:14

I cant even open the admin app, I just get a 503, I am trying to run this on an actual website but all I have access to is cpanel and the file directory, and the log for my nodejs app has some random unexpected syntax errors from within the modules scripts relating to a /streams route every time I try and connect to the admin app

Ответить
@Cdswjp
@Cdswjp - 29.04.2022 17:50

too bad all the good videos use OBS

Ответить
@santiagobustamante970
@santiagobustamante970 - 16.02.2022 17:51

Thanks Hussein you're awesome

Ответить
@6365bharath
@6365bharath - 07.01.2022 18:01

Hussein how do we scale this application further?

Ответить
@bikashbhandari5608
@bikashbhandari5608 - 30.12.2021 09:21

i dint find any tutorials or doc for adaptive bit rate stream on node media server...can u please tell me how to do that?

Ответить
@Brad0st
@Brad0st - 28.12.2021 05:03

amazing! may i ask about how many viewers are supported? is it possible to reach 1000 - 5000 viewers if server has a big CPU ( Cores ) with 32gb ram ?

Ответить
@waleedzakriakhan9538
@waleedzakriakhan9538 - 19.12.2021 07:57

How to use ws in it

Ответить
@adnanyigitkose4682
@adnanyigitkose4682 - 08.11.2021 05:28

Subscribed! Thanks for your great time that you give us..

Ответить
@cjsima
@cjsima - 05.11.2021 17:57

How does the proxy differentiate between a client pushing a stream, which has to hit app 1, vs a consuming client, who can access any server?

Ответить
@camilobedoya7779
@camilobedoya7779 - 14.10.2021 00:32

Nice bro! My question is... If I have 3 servers, does the relay method go on all 3 servers or only on one? since with load balancing a server is chosen at random. Thank's bro!

Ответить
@cloudsystem3740
@cloudsystem3740 - 26.08.2021 13:55

i try with HLS with to much fragment files unfortunately can you share something to learn ? :)

Ответить
@gaminglaptopsforsale8127
@gaminglaptopsforsale8127 - 20.08.2021 17:27

Underrated video. This is amazing!

Ответить
@cloudsystem3740
@cloudsystem3740 - 14.08.2021 03:14

thank you so much for this awesome tutorial but i think that maybe its not good idea to proxy the main relay

Ответить
@gaurav425
@gaurav425 - 15.07.2021 11:25

@hussein - Great Stuff. Would you by any chance know how we can receive or consume a "RTMPS" stream? I'm having trouble finding a flutter video player that can consume a RTMPS stream.

Ответить
@hossainazad4585
@hossainazad4585 - 10.06.2021 09:38

If we relay the stream then the same stream will play in all servers... Then all servers will cost the same resource...

Ответить
@sharaizkhan7323
@sharaizkhan7323 - 01.06.2021 12:25

Is there anyway that I can host the node media server on an online server so that anyone can stream on my site?

Ответить
@guicercal
@guicercal - 28.05.2021 17:53

excellent!

Ответить
@krishnakumar-rp9wc
@krishnakumar-rp9wc - 19.05.2021 20:52

You have become a family to me! I love your long videos ! Thanks for existing!

Ответить
@samirkamand8351
@samirkamand8351 - 11.05.2021 20:01

HELLO SIR :) I Wonder if you can help me ? i have a server & mixxx software instold on the server & admin name for the radio
can you combine with them all to go streamin audio on line without using a therd company like(icecast or shoucast or any athore ) what i mean is we can be the compny to stream insted .. if so i'll send you my phone number to chat & descuse your fee about all ..tnx

Ответить
@robertdowney1823
@robertdowney1823 - 03.04.2021 18:56

Thank you bro so much ! love you!

Ответить
@natielgavi
@natielgavi - 15.02.2021 15:02

Makes it look so easy.. awesome.

Ответить
@bestmusics9625
@bestmusics9625 - 14.02.2021 14:55

Hi Bro your content is excellent today i m configure the NMS server but the m3u8 URL is not working for me pls help me and Keep up the great work. See you soon!

Ответить
@fullnaoufal
@fullnaoufal - 09.02.2021 14:15

Hey Hussien,

Can you tell us about : Architecture of ZAB – ZooKeeper Atomic Broadcast protocol?

Regards

Ответить
@chrisdamonsworld
@chrisdamonsworld - 08.02.2021 11:42

Nice video

Ответить
@SergeyPopovX
@SergeyPopovX - 07.02.2021 21:06

You forgot to "npm init" before you "npm install" anything.

Ответить
@oussamawahbi4976
@oussamawahbi4976 - 07.02.2021 15:21

i would love to see a video about webrtc , stun/turn , signaling server and all that stuff !!!

Ответить
@CodingNuggets
@CodingNuggets - 07.02.2021 04:25

Hussein, your content is excellent. Thanks for all you do. It isn't easy to make videos consistently. Keep up the great work. See you soon!

Ответить
@johnlovell8299
@johnlovell8299 - 06.02.2021 20:01

Another precise and awesome tutorial from the King of Backend Engineering!

Ответить
@tarekali7064
@tarekali7064 - 06.02.2021 17:13

LET'S GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO! FINALLY!

Ответить
@SachinVerma_profile
@SachinVerma_profile - 06.02.2021 16:41

Awesome content!!

Ответить
@Ruf4eg
@Ruf4eg - 06.02.2021 15:26

I admire your enthusiasm :)

Ответить
@kevinkkirimii
@kevinkkirimii - 06.02.2021 15:24

this is dope

Ответить
@Mrabdulazizbidani07
@Mrabdulazizbidani07 - 06.02.2021 15:08

Love what you do, keep the good work👍😍

Ответить
@Stoney_Eagle
@Stoney_Eagle - 06.02.2021 14:47

The app I'm developing also shorts to NMS 😂😅 NoMercy MediaServer
I will definitely peek into their code to see what they do 😁 it looks nice.

Ответить
@islem1263
@islem1263 - 06.02.2021 14:28

Can you talk about ECH and Mozilla dropping ESNI

Ответить
@Dominik-K
@Dominik-K - 06.02.2021 12:24

Oh, this video is very interesting for me!
I'm actually looking at low-latency streaming solutions and offering some additional features, like camera angles.
WebRTC was pretty easy in a test environment, but deploying it is a nightmare!
STUN, TURN and all those things just aren't needed with a RTMP-setup.

This video was very appreciated🧡

Ответить