Server Map Configuration : Using the server-map Command

Using the server-map Command
In the Media Flow Controller CLI, you define the server map with the server-map command, and then assign it to a defined namespace. To define a server map:
1.
2.
Next, set the format-type.
If this server-map will be assigned to a namespace with HTTP origin-server(s) without consistent hashing, set the format-type to host-origin-map, this is the only allowed value for format-type and applies only to HTTP origin-servers.
If this server-map will be assigned to a namespace with an HTTP origin-server, and you want consistent hashing for a cluster configuration, set the format-type to cluster-map.
If this server-map will be assigned to a namespace with an HTTP origin-server, and you want to configure origin escalation, set the format-type to origin-escalation-map.
server-map <name> [format-type <type>]
3.
If you are using a cluster-map and/or origin-esc-map, optionally set additional allowed-fails and node-monitoring options:
allowed-fails—Specify how many request failures are allowed before the node is declared down. Default is 3, minimum allowed value is 0 (zero); maximum value is 32.
node-monitoring—Set node monitoring options:
connect-timeout—Specify the allowable time in milliseconds for the socket connect to complete.
heartbeat-interval—Specify the time in milliseconds for nodes to wait before sending a “heartbeat” signal to the other nodes indicating availability status.
read-timeout—Specify the allowable time in milliseconds for the socket read to complete after the connection is established.
4.
Set a file-url for the server-map; this tells Media Flow Controller where to go to fetch the XML mapping file. Also, change the refresh interval (how often Media Flow Controller refreshes the XML file). The default refresh-interval is 0 (zero), which means no refresh; note this can also be set in the XML mapping file; the CLI setting overrides the XML file setting.
file-url <URL> refresh-interval <time>
5.
The final step is to assign the server-map to a namespace, and set options. Note! You can assign multiple server-maps in Releases 1.2 and 2.0.2.
namespace <name> uri <uri-prefix> origin-server <protocol> server-map <name>
Example (for HTTP origin):
test-vos (config) # server-map format-type host-origin-map newMap
test-vos (config server-map format-type host-origin-map newMap) # file-url http://example.com/vod/ refresh-interval 9000
test-vos (config server-map format-type host-origin-map newMap) # exit
test-vos (config) # show server-map
Server-map : newMap
Format-type : host-origin-map
Map File : http://example.com/vod/
Refresh Interval : 9000
test-vos (config) # namespace newTest uri / origin-server http server-map newMap
test-vos (config) #

Report an Error
Media Flow Controller Administrator's Guide and CLI Command Reference
Copyright © 2010 Juniper Networks, Inc.