...
To configure CDN, the following main settings in the flashphoner.properties files are used (see the complete list in the settings file description):
Parameter | Default value | Type | Description |
---|---|---|---|
cdn_enabled | false | Boolean | Enable/disable CDN |
cdn_ip | Empty | String | Server address in CDN |
cdn_nodes_resolve_ip | false | Boolean | Resolve server names to IP addresses |
cdn_point_of_enry | Empty | String | Address of the server, the entry point to CDN for the given server |
cdn_port | 8084 | Int | Port number for CDN |
cdn_role | edge | String | Role of the server in CDN: origin - source of streams for other servers in CDN edge - can receive streams from other servers |
Configuration examples
...
Minimum configuration example
Two servers: Origin (origin.flasphoner.com) and Edge (edge.flasphoner.com)
...
Code Block | ||||
---|---|---|---|---|
| ||||
cdn_enabled=true cdn_ip=edge.flashphoner.com cdn_nodes_resolve_ip=true cdn_point_of_entry=origin.flashponer.com cdn_role=edge |
...
Two Origin servers configuration example
Four servers: Origin1 (origin1.flasphoner.com), Origin2 (origin2.flasphoner.com) and Edge1 (edge1.flasphoner.com), Edge2 (edge2.flasphoner.com)
...
Obtaining information about the current status of CDN from the WCS command line is performed with these commands:
Command | Description | Example result | |||||||
---|---|---|---|---|---|---|---|---|---|
show cdn-nodes | Displays the list of node servers in CDN: ACTIVE - the server is running, responds to queries and/or sends notifications PASSIVE - the server is stopped or unavailable |
| |||||||
show cdn-routes | Shows the list of active streams in CDN |
|
Coordination of codecs on Origin and Edge servers
...
Restart Origin and Edge servers. Enter the command line interface of the Edge server, authorize and enter this command
...
6. Click the Start button. Playing of the testCDN stream starts.
7. In the command line interface of the Edge server enter the command
...