Creating the cluster-map XML File
245
Media Flow Controller Administrator’s Guide
Server Map Configuration
Example: host-origin-map DTD
Document Type Definition (DTD) for host-origin-map. "PCDATA" indicates data that the XML
parser fills in after reading your file. You can use this to validate your XML; see
“Validating With
the DTD,”
for details.
<!-- HostOriginMap 1.0 DTD, Copyright (c) 2010 by Juniper Networks, Inc. -->
<!ELEMENT HostOriginMap (Header*, HostOriginEntry*)>
<!ELEMENT Header (Version, Application)>
<!ELEMENT Version (#PCDATA)>
<!ELEMENT Application (#PCDATA)>
<!ELEMENT HostOriginEntry (Host, Origin, Port)>
<!ELEMENT Host (#PCDATA)>
<!ELEMENT Origin (#PCDATA)>
<!ELEMENT Port (#PCDATA)>
<!ELEMENT Options (#PCDATA)>
Validating With the DTD
When generating server-map XML files, you can validate the XML against the DTD by
running the following under linux (example uses HostOriginMap; for cluster-map use
ClusterMap.dtd, for origin-escalation-map use OriginEscalationMap.dtd):
xmllint --noout --dtdvalid <DTD filename> <XML filename>
Example:
xmllint --noout --dtdvalid ./dtd/HostOriginMap.dtd HostOriginMap.xml
Note!
Ignore the following xmllint warning:
HostOriginMap.xml:2: warning: failed to load external entity
"HostOriginMap.dtd"
Creating the cluster-map XML File
The server-map format-type cluster-map calls for specific definition of a consistent hashing
scheme used to bind objects to nodes. For background information on consistent hashing, see
the following:
http://www8.org/w8-papers/2a-webserver/caching/paper2.html
Sample cluster-map XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE ClusterMap SYSTEM "ClusterMap.dtd">
<ClusterMap>
<Header>
<Version>1.0</Version>
<Application>MapXML</Application>
</Header>
<ClusterMapEntry>
<Node>NodeName1</Node>
<IP>172.19.172.52</IP>
Содержание MEDIA FLOW CONTROLLER 2.0.4 -
Страница 6: ...Media Flow Controller Administrator s Guide VI Copyright 2010 Juniper Networks Inc...
Страница 24: ...LIST OF FIGURES XXIV Copyright 2010 Juniper Networks Inc...
Страница 37: ...Copyright 2010 Juniper Networks Inc 37 PART 1 Media Flow Controller Administration...
Страница 38: ...Media Flow Controller Administrator s Guide 38 Copyright 2010 Juniper Networks Inc...
Страница 285: ...Copyright 2010 Juniper Networks Inc 285 PART 2 Media Flow Controller Command and MIB Reference...
Страница 286: ...Media Flow Controller Administrator s Guide 286 Copyright 2010 Juniper Networks Inc...