简体   繁体   中英

How to stream on demand video with load balancing

I am triyng to figure out how to load balance my video server. The real world scenario is;

i have a storage server which stores all my video files, an several servers to load balance my http request(works like a CDN service). Client requests a video file -> Nearest Load balancing server answers request (lets say it LBS) LBS -> Storage (find the video and start sending first N kbyte to client, so it starts to play) -> LBS caches the rest of the file on its own storage, and on the next request, serves it directly from its cache,not from storage.

The problem with this setup is, i want to serve videos through RTMP, but on the balancing machine(its nginx web server), i couldnt serve the virtual files(like rtmp stream).

For the short; i am looking for an rtmp server implementation that acts like an nginx web server. Any ideas, advices will be great.

Note: currently i am trying to implement crtmpserver

You can use nginx_rtmp module ... It's support stream flv files as rtmp streams (and transcoding rtmp streams, and repackage rtmp to hls too)

See doc about: https://github.com/arut/nginx-rtmp-module/

j

nginx created for handle static files.

For rtmp streamig and balansing use erlyvideo server. It written on erlang so load balancing are built in by design.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM