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.