Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • prevention of redundant transcoding of the same stream on two or more transcoders in CDN
  • CDN extended information displaying
  • channel quality control between CDN nodes
  • node state periodic sending

Prevention of redundant transcoding of the same stream on two or more transcoders in CDN

...

REST queries and response states

REST query

Body example

Response example

Response states

Description

/cdn/stats/print

Code Block
languagejs
themeRDark
{
 "name":"test",
 "host":"192.168.0.111",
 "format":"json"
}




Code Block
languagejs
themeRDark
{
    "192.168.0.111": [
        {
            "fps": 30, 
            "inboundBitrate": 1658292, 
            "nack": 0, 
            "name": "test", 
            "outboundBitrate": 1692676, 
            "quality": "PERFECT"
        }
    ]
}

200 – OK

404 - Stream not found

Get the stream statisctics

Parameters

Parameter

Description

Example

name

Stream name

test

hostNode IP address from whic stream is receiving192.168.0.111
formatResponse formatjson
inboundBitrateInbound (received) bitrate1658292
outboundBitrateOutbound (sent) bitrate1692676
nackNACK count0
fpsFPS30
qualityChannel quality metricPERFECT

The query without stream name returns all the sreams statistics received from the CDN node defined. The qury without node returns all the streams statistics received from other CDN nodes if the stream name is not set

...

Channel quality metric is shown as follows

JSONPrometheusDescription
UNKNOWN0Quality is unknown, media packets are not received
BAD1Quality is bad
GOOD2Quality is good
PERFECT3Quality is perfect

Node state periodic sending

To reduce impact of channels quality between CDN nodes to CDN current state collection on each node, there was a couple of parameters added to control the period of CDN node state components sending to another nodes

ParameterDefault valueDescription
cdn_nodes_acl_refresh_interval60000Interval to send ACL keys list, ms
cdn_nodes_group_refresh_interval60000Interval to send node groups, ms
cdn_nodes_role_refresh_interval60000Interval to send node role, ms
cdn_nodes_route_refresh_interval60000Interval to send node routes, ms
cdn_nodes_state_refresh_interval60000Interval to send node state, ms
cdn_nodes_version_refresh_interval90000Interval to send CDN version supported, ms

Backward compatibility with CDN 2.2, 2.1, 2.0

...