| Bill Sanders 2005-11-11, 8:45 pm |
| Dan,
Here's an explanation from Pritham Shetty explaining how to use the
Edge server, which is pretty much a proxy server. (I think this will
help!)
Bill
-----------------------------
Hi,
Edward answered one way of doing this using the FPAD mechanism, this
however works only within and enterprise network. This is just like
configuring a HTTP proxy.
There is also another way which can work across enterprise networks and
this would be one way to deploy applications to scale to large number of
users. This is also referred to as reverse proxy configuration.
FMS proxy can be configured in what is called an anonymous mode. In this
mode a Flash player can use rtmp://edge-name/app/inst just like you do
today, except that edge-name server is pointing to anonymous proxy.
When this proxy gets the connection you can set up a route table entry
which says to route all connections coming to this edge to an origin
server which is actually hosting the application and content.
In this configuration you don't have to make any code change to your
connect logic. Just put an anonymous proxy in front of your origin
server and route connections to the origin.
This can be done in 2 ways, within one system or have 2 systems.
For 2 server system
1) Install FMS on 2 servers ( default install), say server1 and server2.
2) Make server1 proxy by changing the following configs.
Open vhost.xml in _defaultVhost_
Make the following changes
<Mode>remote</Mode>
<Anonymous>true</Anonymous>
Add this into <RouteTable> section
<RouteEntry> *:*;<PUT_ORIGIN_IP_HERE>:1935</RouteEntry>
Note : Replace "PUT_ORIGIN_IP_HERE" with DNS or IP address of
server2
There is a good description of RouteTable in vhost.xml, I
recommend reading it. What this is saying is, if any connection from any
domain on any port coming into this proxy should be routed to port 1935
on "server2".
This is it for proxy
3) Now on server 2 you don't need to make any changes to
configuration.
Just install your apps and content and you are ready to go.
Try this : rtmp://server1/myapp/inst should just work.
You can also try this on a single system.
1) Install FMS.
2) Install your apps and content.
3) Make a copy of _defaultRoot_ directory and name it origin
(Note: make sure all subdirectoies and files within
_defaultRoot_ are copied)
Now you should have 2 directories
<installdir>/conf/_defaultRoot_
<installdir>/conf/origin
4) Open <installdir>/conf/_defaultRoot_/_defaultVhost_/Vhost.xml
Make the following changes
<Mode>remote</Mode>
<Anonymous>true</Anonymous>
Add this into <RouteTable> section
<RouteEntry> 127.0.0.1:1936</RouteEntry>
5) Open <installdir>/conf/origin/Adaptor.xml
Delete the line
<HostPort name="edge1"
ctl_channel=":19350">${ADAPTOR.HOSTPORT}</HostPort>
Replace it with
<HostPort name="edge2"
ctl_channel=":19351">127.0.0.1:1936</HostPort>
This is it. Just connect to your app and it should all work.
What is happening here is we created 2 adaptors.
_defaultRoot_ - this is going to be our edge. This will listen
on all ports you had configured during your install.
Origin - This adaptor is going to be our origin.
You will notice we made one change, we are listening on
127.0.0.1 on port 1936 and in the proxy config we said all connections
route to this address.
This configuration is also pretty useful to load balance your app even
if it is all running on the same box.
Edge is going to do all the connection handshake, streaming and
sharedobject handling and origin will do all of the script execution,
recording and send one copy of stream and SO data to edge.
Thanks,
Pritham.
On Nov 11, 2005, at 8:44 PM, Daniel Pedro wrote:
>
> Has anyone been able to succesfully setup an Origin and an Edge
> Server on the FMSII beta???
>
> I have tried following the live docs with no luck... can anyone
> point me in the right direction?? I noticed the beta says Origin
> so it may not allow it..
>
> Please help
> thank you
> Dan
>
> ________________________________________
_______
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|