...
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_enryentry | Empty | String | Address of the server, the entry point to CDN for the given server. If the server is Origin, this parameter should not be set to this servers' IP address or hostname |
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 |
...
Obtaining information about the current status of CDN from the WCS command line is performed with these commands:
...
REST queries and response statuses
REST query | REST query example | REST response example | Response states | Description | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
/cdn/show_routes |
| 200 – OK 500 – Internal Server Error | Show active CDN routes |
Parameters
Description | Example |
---|---|
Route identifier | 1-origin2.flashphoner.com-2 |
Stream name in CDN | stream1 |
Removing stopped servers from CDN nodes list
...
If there is a codec used to publish the stream in subscrbers codecs set then this codec will be used to play the stream (regardless of its priority). Otherwise, the subscribers priority codec will be used for playback, and transcoding will occur.
Quick manual on testing
1. For testing we use:
...
Read and write timeout settings in CDN for RTMP streams delivery
If CDN is used mostly for publishing and playing RTMP streams, and Keep Alive packets is disabled on CDN servers for some reason (for example, publishers and players do not support Keep Alives), it is necessary to setup read and write timeouts to control state of RTMP connections:
1. Read timeout can be set on Origin server that is used only to publish streams, which will not be played directly from the Origin
Code Block | ||
---|---|---|
| ||
keep_alive.algorithm=NONE
rtmp.server_read_socket_timeout=120 |
2. Write timeout can be set on Edge server that is used only to play CDN streams
Code Block | ||
---|---|---|
| ||
keep_alive.algorithm=NONE
rtmp.server_write_socket_timeout=120 |
3. Read and write timeout can be used both on Origin and Edge servers
Code Block | ||
---|---|---|
| ||
keep_alive.algorithm=NONE
rtmp.server_socket_timeout=120 |
Quick manual on testing
1. For testing we use:
- two WCS servers;
- the Two Way Streaming web application to publish the stream;
- the Player web application to play the stream.
...
On the play page of the Edge server playing of the stream also stops and the message "Stopped by publisher stop" displays.
Known limits
1. It is strongly not recommended to publish streams with same name to two Origin servers in the same CDN.
2. A stream published to one of Origin servers should be played on the same Origin server or any Edge server, but should not be played from another Origin server in the same CDN.
Known issues
1. Changing codec settings on the Edge server can lead to increased load on the server as a result of enabled transcoding.
...