
8
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
Deploying the server
Last updated 11/28/2012
Load balancing peer-assisted networking applications
Use one of the following two techniques to load balance a peer-assisted networking applications:
•
Distribute introductions across a server-only RTMFP NetGroup.
This technique is new in Flash Media Server 4.5. Use a Server-Side ActionScript API to distribute peer lookup
requests across multiple servers. For more information, see
Distributing introductions across multiple servers
.
•
Set up an edge-origin configuration.
In the Vhost.xml configuration file on each edge server, set
<Mode>remote</Mode>
. For more information, see
“
Configure edge servers
” on page 9.
On the client, the NetConnection URL changes from
"rtmfp://fms-server/application"
to
"rtmfp://edge-
fms-server/?rtmfp://origin-fms-server/application"
. Alternately, you can configure the
RouteTable
and
RouteEntry
in the Vhost.xml file on the edge server to point to the origin server. In this case, the client URL
is still
"rtmfp://fms-server/application"
.
Set up DNS entries to distribute the load across the edge servers. For the server to function properly as an RTMFP
introducer, use one origin server per application. For peer lookup to work, clients must be connected to the same
server process, but not necessarily to the same application. Peer lookups do not work across origin servers.
However, peerIDs are cached on the edge server which reduces the load on the origin. When clients are connected
to the same edge, the introduction can happen at the edge and there is not a lookup call to the origin.
More Help topics
“
Deploying edge servers
” on page 8
Deploying edge servers
Workflow for deploying edge servers
Note:
Flash Media Streaming Server cannot be configured as an edge server.
By default, the server runs as an origin server. To run the server as an edge server, you must configure an XML file.
Typically you would run Flash Media Interactive Server as an origin server on one computer and run Flash Media
Interactive Server as an edge server on another computer.
1.
Install Flash Media Interactive Server and verify the installation on each computer.
Deploy all edge and origin servers on computers that meet the minimum system requirements. For information about
installing and verifying installation, see the
Installation Guide
.
Note:
For cross-platform compatibility, use lowercase names for all folders and applications.
2.
Configure an edge server and restart.
On the edge server, edit the Vhost.xml file of the virtual host you want to run as an edge server.
3.
Verify that the edge server can communicate with the origin server.
The easiest way to verify is to create an explicit connection. Create a SWF file with an explicit connection to the edge
server and run the vod or live service.