
245
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
XML configuration files reference
Last updated 11/28/2012
Mode
The
Mode
element configures whether the server runs as an origin server or as an edge server.
The
Mode
element can be set to
local
or
remote
. The default setting is
local
.
•
When the
Mode
element is set to
local
, Flash Media Server runs its applications locally and is called an origin
server.
•
When the
Mode
element is set to
remote
, the server behaves as an edge server that connects to the applications
running on an origin server.
•
If the
Mode
element is undefined, the virtual host is evaluated as an alias for the default virtual host and assumes its
configuration.
Example
<Mode>local</Mode>
See also
Anonymous
,
CacheDir
,
LocalAddress
,
RouteTable
,
EdgeAutoDiscovery
NumBuckets
Specifies the number of buckets to divide the cache into. The aggregate cache size is defined by
MaxSize
. Can be any
value from 2 to 128; the default value is 8. More buckets mean that a smaller portion of the disk content will be deleted
at any one time, but also that files will need to be moved to new buckets more often, which results in more disk activity
and lower performance.
You can define the number of buckets that contain contents that can be moved with
NumBucketsAtRisk
.
Example
<NumBuckets>10</NumBuckets>
See also
MaxSize
,
NumBucketsAtRisk
NumBucketsAtRisk
Specifies the number of buckets considered to be “at risk” of deletion. Can be any value from 0 to
NumBuckets
- 1; the
default is
NumBuckets
/2. To avoid moving files too frequently at the expense of disk performance, only segments that
are in the oldest
NumBucketsAtRisk
buckets will be moved to the newest bucket when accessed. A value of 0 means
that segments, once pulled from the origin, are never moved to a newer bucket, effectively turning the cache into an
LRU (least recently used) cache.
The default value of
NumBuckets
/2 means that only segments in the “older half” of content will be moved. The idea is
that segments in the “newer half” of content are more likely to be accessed again before they are deleted, thus making
it less important to move them.
Example
<NumBucketsAtRisk>1</NumBucketsAtRisk>
See also
MaxSize
,
NumBuckets