/usr/share/doc/red5/html/clustering.html is in red5-doc 1.0~svn4374-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Chapter 15. Clustering</title><link rel="stylesheet" type="text/css" href="html.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Red5 - Reference Documentation"><link rel="up" href="core-components.html" title="Part II. Red5 Core Components"><link rel="prev" href="scripting.html" title="Chapter 14. Scripting Implementations"><link rel="next" href="management.html" title="Chapter 16. Management"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div xmlns="http://www.w3.org/TR/xhtml1/transitional" style="background-color:white;border:none;height:73px;border:1px solid black;"><a style="border:none;" href="http://osflash.org/red5" title="Red5 Open Source Flash Server"><img style="border:none;" src="images/red5-banner.png"></img></a><a style="border:none;" href="http://osflash.org/red5" title="Red5 Open Source Flash Server"><img style="border:none;position:absolute;padding-top:5px;right:42px;" src="images/red5-banner-logo.png"></img></a></div><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a name="clustering"></a>Chapter 15. Clustering</h2></div></div></div>
<p>In Red5 0.7 the Ant build.xml file contains a build target that creates a 'cluster' folder containing the same setup as described below. Use 'ant dist-cluster' to create the Red5 clustering setup.</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Note: Limitations"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../images/admons/note.png"></td><th align="left">Limitations</th></tr><tr><td align="left" valign="top">
<p>As of now, the current trunk only supports the clustering configuration for multiple Edges with one Origin. The Edge server only accepts RTMP connection.</p>
</td></tr></table></div>
<div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d5e2126"></a>15.1. Server Configuration</h2></div></div></div>
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e2128"></a>15.1.1. Configuration Files</h3></div></div></div>
<p>There are several configuration files added to support Edge/Origin configuration.</p>
<p>red5-edge.xml, red5-edge-core.xml - used for edge spring bean configuration. They are under conf/.</p>
<p>red5-origin.xml, red5-origin-core.xml - used for origin spring bean configuration. They are under conf/.</p>
</div>
</div>
<div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d5e2133"></a>15.2. Configure Edge Server</h2></div></div></div>
<p>You don't need to deploy your application on Edges.</p>
<p>We strongly recommend you to deploy Edge on a different server from Origin. But it should be OK to deploy the Edge on the same server as Origin.</p>
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e2137"></a>15.2.1. Edge on a different Server from Origin</h3></div></div></div>
<p>Update the configuration of bean "mrtmpClient" in red5-edge-core.xml to point to Origin server:</p>
<pre class="programlisting">
<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>
</pre>
<p>Replace red5.xml with red5-edge.xml. Start the server by</p>
<pre class="screen">
$ ./red5.sh
</pre>
<p>or</p>
<pre class="screen">
$ java -jar red5.jar
</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="d5e2145"></a>15.2.2. Edge on the same Server as Origin</h3></div></div></div>
<p>You don't need to change red5.xml. Copy red5-edge.xml to $(RED5_ROOT) from $(RED5_ROOT)/conf. Start the server by</p>
<pre class="screen">
$ java -jar red5.jar red5-edge.xml
</pre>
<p>or update red5.sh to add a parameter "red5-edge.xml", then</p>
<pre class="screen">
$ ./red5.sh
</pre>
</div>
</div>
<div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d5e2151"></a>15.3. Configure Origin Server</h2></div></div></div>
<p>Deploy your application to webapps/. Make sure your 9035 port is not blocked by firewall. The port will be used by Edges to connection Origin.</p>
<p>Update red5.xml with red5-origin.xml. Start the server by</p>
<pre class="screen">
$ ./red5.sh
</pre>
<p>or</p>
<pre class="screen">
$ java -jar red5.jar
</pre>
</div>
<div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d5e2158"></a>15.4. Use Your Appliation</h2></div></div></div>
<p>Your RTMP can go through Edges now. Your RTMPT and HTTP can go through Origin as normal.</p>
</div>
</div><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navfooter"><hr></hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="scripting.html">Prev</a> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right"> <a accesskey="n" href="management.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 14. Scripting Implementations </td><td width="20%" align="center"><span style="color:white;font-size:90%;"><a href="http://osflash.org/red5" title="Red5">Red5 Open Source Flash Server</a></span></td><td width="40%" align="right" valign="top"> Chapter 16. Management</td></tr></table></div></body></html>
|