Use the content caching feature to distribute on-demand content throughout your network. Clients request on-demand content from a subscriber. If the file is not available in the subscribers cache, it is requested from the publisher.
Note: In addition to the variables defined in this section, content caching depends on the authentication features. A default realm and database are created during set-up. Use this feature on the publisher. See "Security Configuration".
For more information: For information about defining content caching using Helix Administrator, see "Content Caching".
The following shows an example of content caching syntax:
<!-- Local File System; Cached Media Files -->
<List Name="RealSystem Cache Filesystem">
<Var ShortName="pn-mii-mgr"/>
<Var MountPoint="/cachemgr/"/>
<Var CacheShortName="rn-cache"/>
</List>
<List Name="RNCache Local File System">
<Var ShortName="pn-local"/>
<Var MountPoint="/fsforcache/"/>
<Var BasePath="/home/user/Helix Mobile Server/Cache"/>
</List>
...
</List>
<!-- M E D I A C A C H E --> <List Name="RNCache"> <Var Enabled="1"/> <Var MaxCacheSizeMB="1000"/> <Var CacheMountPoint="/fsforcache/"/> </List> <!-- M E D I A E X P O R T & C A C H E A C C E S S --> <Var TSPort="7802"/> <Var TSLog="1"/> <Var TSLogPath="/home/user/Helix Mobile Server/cache.log"/> <List Name="MediaExportInterface"> <Var ListenPort="7878"/> <Var LoggingEnabled="1"/> <Var LogFile="/home/user/Helix Mobile Server/Logs/cache.log"/> <Var Enabled="1"/> <Var MinMIIVersionAllowed="1.0"/>
<Var ContentPublisher="1"/>
<Var AuthenticationRealm="ContentDistributionRealm"/>
</List> <!-- C O N T E N T S U B S C R I P T I O N --> <List Name="ContentSubscription"> <Var Enabled="1"/> <Var StatisticAggregationPeriodSec="10"/> <List Name="Publishers"> <List Name="MyPrimaryPublisher"> <Var Host="205.23.5.108"/> <Var Port="7878"/> <Var UserName="username"/> <Var Password="password"/> </List> <List Name="MySecondaryPublisher"> <Var Host="fileserver.espn.com"/> <Var Port="7878"/> <Var UserName="username"/> <Var Password="password"/> </List> </List> <List Name="Rules"> <List Name="100"> <Var EnableRule="1"/> <Var Rule="*.real.com"/> <List Name="Publishers"> <Var 100="MyPrimaryPublisher"/> <Var 200="MySecondaryPublisher"/> </List> </List> <List Name="200"> <Var EnableRule="1"/> <Var Rule="*.cp.com"/> <List Name="Publishers"> <Var 100="MyPrimaryPublisher"/> </List> </List> <List Name="300"> <Var EnableRule="1"/> <Var Rule="/demand/sports/*"/> <List Name="Publishers"> <Var 100="MyPrimaryPublisher"/> </List> </List> </List> </List>
Note: The RealSystem Cache Filesystem list defines the basic operation of the caching file system. These values should not be changed unless you are creating new plug-ins that control the caching operation. The remaining lists and variables allow you to change the features of the caching system.
For more information: See also UseContentDistribution.
|
parent: |
|
|
registry: |
config.FSMount.RNCache Local File System |
|
function: |
Defines the caching file system. |
|
variables: |
Note: This list is where the local file system and the file system used for cache management meet. Set up this list on both the publisher and subscriber.
|
parent: |
none |
|
registry: |
config.MediaExportInterface |
|
function: |
Defines publisher operations. |
|
variables: |
|
parent: |
|
|
registry: |
config.RNCache |
|
function: |
Defines cache characteristics. |
|
variables: |
|
parent: |
|
|
registry: |
config.ContentSubscription |
|
function: |
Defines publishers used by this subscriber. |
|
variables: |
|
parent: |
|
|
registry: |
config.ContentSubscription.Publishers |
|
function: |
Lists the publishers available to this subscriber. |
|
variables: |
none |
|
parent: |
|
|
registry: |
config.ContentSubscription.Publishers.publisher_name |
|
function: |
Defines a single publisher available to this subscriber. |
|
variables: |
|
parent: |
|
|
registry: |
config.ContentSubscription.Rules |
|
function: |
Sets rules for how content is distributed. |
|
variables: |
none |
|
parent: |
|
|
registry: |
config.ContentSubscription.Rules.rule_number |
|
function: |
Creates a rule (use a unique integer; rules are parsed in numeric order). |
|
variables: |
|
parent: |
|
|
registry: |
config.ContentSubscription.Rules.rule_number.Publishers |
|
function: |
Indicates publishers associated with a rule. |
|
variables: |
|
list: |
|
|
syntax: |
<Var AuthenticationRealm="string"/> |
|
value: |
authentication realm |
|
default: |
user.CDistRealm |
|
example: |
<Var AuthenticationRealm="RNSEA49J6CD1L.CDistRealm"/> |
The AuthenticationRealm variable must be included in the MediaExportInterface list on the publisher to indicate the authentication realm for content caching.
|
list: |
|
|
syntax: |
<Var BasePath="string"/> |
|
value: |
path to the cache |
|
default: |
Cache subdirectory of the installation directory |
|
example: |
<Var BasePath="/home/user/Helix Mobile Server/Cache"/> |
Use BasePath to indicate where to store the cache on a disk.
|
list: |
|
|
syntax: |
<Var CacheMountPoint="string"/> |
|
value: |
mount point |
|
default: |
/fsforcache/ |
|
example: |
<Var CacheMountPoint="/fsforcache/"/> |
Indicates a mount point used as an internal resource.
|
list: |
|
|
syntax: |
<Var ContentPublisher="Boolean"/> |
|
value: |
0—do not publish content |
|
default: |
1 |
|
example: |
<Var ContentPublisher="1"/> |
The ContentPublisher variable must be included in the MediaExportInterface list on the publisher to define how media caches are used by Helix Mobile Server.
|
list: |
|
|
syntax: |
<Var Enabled="Boolean"/> |
|
value: |
0—caching or subscription service off |
|
default: |
1 (caching) 0 (subscription) |
|
example: |
<Var Enabled="1"/> |
Use Enabled to turn on the caching services for the publisher and the subscription services for the subscriber.
|
list: |
|
|
syntax: |
<Var EnableRule="Boolean"/> |
|
value: |
0—do not parse the rule |
|
default: |
1 |
|
example: |
<Var EnableRule="1"/> |
Use EnableRule to indicate if the rule should be parsed by the server.
|
list: |
|
|
syntax: |
<Var Host="address"/> |
|
value: |
DNS name|IPv4 address|IPv6 address |
|
default: |
none |
|
example: |
<Var Host="205.23.5.108"/> |
The address of the publisher.
|
list: |
|
|
syntax: |
<Var MaxCacheSizeMB="integer"/> |
|
value: |
integer that represents Megabytes |
|
default: |
1000 |
|
example: |
<Var MaxCacheSizeMB="1000"/> |
Sets the maximum size of the cache.
|
list: |
|
|
syntax: |
<Var MountPoint="string"/> |
|
value: |
mount point |
|
default: |
/fsforcache/ |
|
example: |
<Var MountPoint="/fsforcache/"/> |
Indicates a mount point used as an internal resource.
|
list: |
|
|
syntax: |
<Var Password="string"/> |
|
value: |
password for user name |
|
default: |
none |
|
example: |
<Var Password="9284VEW4i"/> |
The password associated with UserName.
|
list: |
|
|
syntax: |
<Var Port="integer"/> |
|
value: |
port number |
|
default: |
554 |
|
example: |
<Var Port="554"/> |
The port on which the publisher is listening for requests for content from its cache.
|
list: |
|
|
syntax: |
<Var integer="string"/> |
|
value: |
one of the publishers defined in the publisher_name list |
|
default: |
none |
|
example: |
<Var 100="MyPrimaryPublisher"/> |
Use an integer with a value of one of the publishers defined in the publisher_name list. Helix Mobile Server parses these variables in numeric order.
|
list: |
|
|
syntax: |
<Var Rule="string"/> |
|
value: |
string that matches a portion of the requested URL |
|
default: |
1 |
|
example: |
<Var Rule="*.example.com"/> |
Use Rule to define a string that will appear in a URL. Helix Mobile Server searches incoming URLs for the string to determine whether to invoke the rule. If the server finds a match and the requested content is not in the subscriber's cache, the file is requested from the publishers identified by the Publisher list associated with this rule.
The following are examples of possible values. You can use an asterisk (*) as a wildcard:
*.example.com
/sports/
example_file.rm
*.example.com/sports/*_file.rm
|
list: |
|
|
syntax: |
<Var ShortName="string"/> |
|
value: |
short name of the cache plug-in |
|
default: |
pn-local |
|
example: |
<Var MountPoint="pn-local"/> |
Use ShortName with a value of pn-local.
|
list: |
|
|
syntax: |
<Var StatisticAggregationPeriodSec="integer"/> |
|
value: |
integer representing the number of seconds |
|
default: |
10 |
|
example: |
<Var StatisticAggregationPeriodSec="10"/> |
The StatisticAggregationPeriodSec variable determines the period over which Helix Mobile Server aggregates content caching activity to provide statistics about current caching operations.
For more information: For information about reporting on caching activity, refer to "Content Distribution Properties".
|
list: |
|
|
syntax: |
<Var TSLogPath="string"/> |
|
value: |
full path and file name |
|
default: |
cache.log in the log subdirectory of the installation directory |
|
example: |
<Var TSLogPath="/home/user/helix/log/cache.log"/> |
Use TSLogPath to set the location of the cache log on the disk. Set up this variable on both the publisher and subscriber.
|
list: |
|
|
syntax: |
<Var TSPort="integer"/> |
|
value: |
port number |
|
default: |
7082 |
|
example: |
<Var TSPort="7802"/> |
Use TSPort to define the port number on which media caches send their requests to Helix Mobile Server. Do not change this unless you want to refuse requests from media caches. Set up this variable on both the publisher and subscriber.
|
list: |
|
|
syntax: |
<Var UserName="string"/> |
|
value: |
user name in the content distribution authentication realm |
|
default: |
none |
|
example: |
<Var UserName="Morales"/> |
A user name included in the realm for content distribution on the publisher.
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com
