Red5 user reference manual: Chapter 6 clusters of red5 core technologies

Source: Internet
Author: User

Full Set of the latest red5 user reference manual
This page introduces your
Configure and deploy the red5 application cluster.
The ant build. xml file package after red5 0.7 contains a build target, which is used to create a cluster folder containing the same installation as below and use ant dist-cluster to create a red5 cluster for installation.
Restrictions
Up to now, trunk only supports multilateral single-source cluster configuration. The Edge Server only accepts rtmp connections.
Server Configuration
Configuration File
Several configuration files are added to support EDGE/source configuration.
Red5-edge.xml, red5-edge-core.xml-used for edge spring bean configuration, which is located under the conf/directory.
Red5-origin.xml, red5-origin-core.xml-used for source spring bean configuration, which is located under the conf/directory.
Configure edge servers
You do not need to deploy your applications on edge servers.
We strongly recommend that you deploy the edge and source on different servers. However, it should be determined that the edge can be deployed on the same server as the source.
Edge of the source on the same server

Update the bean mrtmpclient configuration in the red5-edge-core.xml to a point-to-source service:

<Bean id = "mrtmpclient" class = "org.red5.server.net. mrtmp. mrtmpclient "init-method =" start "> <property name =" iohandler "ref =" mrtmphandler "/> <property name =" server "value =" $ {mrtmp. host} "/> <property name =" Port "value =" $ {mrtmp. port} "/> </bean>

Use a red5-edge.xml to replace red5.xml. Start the service:

 
./Red5.shorjava \-jar red5.jar

Edge of the source on the same server

You do not need to modify red5.xml. Copy the red5-edge.xml from $ (red5_root)/conf to $ (red5_root ). Start the service:

 
Red5-edge.xml for Java \-jar red5.jar

Or modify red5.sh, add a parameter red5-edge.xml, and then

./Red5.sh

Configure the source server
Deploy your application to webapps /. Make sure that port 9035 is not blocked by the firewall. This port will be used for edge and source connections.

Replace red5.xml with the red5-origin.xml. Start the server:

 
./Red5.shorjava \-jar red5.jar

Use your application
Your rtmp can now access the edge. The source can be accessed through rtmp and HTTP normally.
Original article: http://trac.red5.org/wiki/documentation/usersreferencemanual/red5corepolicies/06-clustering.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.