Detailed instructions for use are in the User's Guide.
[. . . ] Using Flash Media Server Edge Servers
Trademarks 1 Step RoboPDF, ActiveEdit, ActiveTest, Authorware, Blue Sky Software, Blue Sky, Breeze, Breezo, Captivate, Central, ColdFusion, Contribute, Database Explorer, Director, Dreamweaver, Fireworks, Flash, FlashCast, FlashHelp, Flash Lite, FlashPaper, Flash Video Encoder, Flex, Flex Builder, Fontographer, FreeHand, Generator, HomeSite, JRun, MacRecorder, Macromedia, MXML, RoboEngine, RoboHelp, RoboInfo, RoboPDF, Roundtrip, Roundtrip HTML, Shockwave, SoundEdit, Studio MX, UltraDev, and WebHelp are either registered trademarks or trademarks of Macromedia, Inc. and may be registered in the United States or in other jurisdictions including internationally. Other product names, logos, designs, titles, words, or phrases mentioned within this publication may be trademarks, service marks, or trade names of Macromedia, Inc. or other entities and may be registered in certain jurisdictions including internationally. [. . . ] These edge servers are defined as implicit proxies since the client is generally unaware that its communication with Flash Media Server is being routed through a proxy. This use of an implicit proxy allows your current applications to continue working without any changes. Flash Player exposes the proxy information to the client only through the read-only properties on the NetConnection object. For more information on the NetConnection class, see the Client-Side Media ActionScript Language Reference.
Earlier versions of Flash Player cannot automatically detect edge servers in their proximity.
NO TE
Chaining edge servers
You can chain together any number of edges when you make connections to the origin server. The following URI shows how two explicit proxies are chained together to direct connection requests to the origin server:
rtmp://proxy1/?rtmp://proxy2/?rtmp://origin/app/inst
When you use URL decoration to chain proxies, Flash Player 7 and earlier versions may have problems with shared objects because of the embedded question mark (?) character in the URL. A workaround is available for clients who use earlier versions of Flash Player. You can resolve the problem by using the following function to escape the question marks from the URI before passing the URI to the shared object.
function escapeURI(uri) { index = uri. indexOf(`?'); if (index == -1) return uri; prefix = uri. substring(0, index); uri = uri. substring(index); return prefix += escape(uri); }
You call this function on the URI you are about to pass into the shared object, then use the result of the function instead of the original URI. Flash Player 8 resolves this problem for Flash Media Server.
Introducing edge servers
13
A second problem surfaces when RTMPT is specified in the URI. You may specify this protocol only for the first prefix. The following are valid URIs:
rtmpt://foo/?rtmp://bar/app/inst rtmpt://foo:443/?rtmp://bar/app/inst
The following are invalid URIs:
rtmpt://foo/?rtmpt://bar/app/inst rtmp://foo/?rtmpt://bar/app/inst
Configuring edge servers
All Flash Media Server functionalities--live streaming, on-demand streaming, messaging, shared object handling, scripting--take place as application instances. Application developers write scripts to create Flash Media Server applications, instances of which are then distributed by the Flash Media Server. A minimal application runs on the edge to perform connection aggregation, stream splitting, stream caching, and smart state management. This separation of tasks off loads to the edge server a large portion of the processing from the main application that runs on the origin server. Flash Media Server and network administrators can configure edge servers to function in different ways. The XML configuration files define how the edge servers connect clients to the origin server. These settings determine how the incoming URLs are routed between the edges and the origin server. You can have a computer run Flash Media Server in a mixed mode, in which certain virtual hosts on this system run applications locally, while others run applications remotely. To configure Flash Media Server, you edit or modify the XML tags in its configuration files. Following are some representative examples:
The Anonymous tag in the Vhost. xml file configures the edge server as either an implicit (transparent) or explicit proxy. For more information, see "Anonymous" in Managing Flash Media Server. The Mode tag in the Vhost. xml file configures Flash Media Server to run as an origin or edge (proxy) server. For more information, see "Mode" in Managing Flash Media Server. [. . . ] Verify that all proxies can access the origin server.
18
Using Edge and Origin Servers
Locate the origin server and those edge servers nearest to it on the same subnet. If you are licensed to deploy a cluster, make sure all proxies in the cluster are configured identically.
Configure the conf directory on one proxy. Place a copy of this conf directory in the same location on the other proxies. Place the load balancer between the clients and the proxies. [. . . ]