...
Code Block | ||
---|---|---|
| ||
[ { "version": "2.3", "role": "TRANSCODER", "inboundConnected": true, "outboundConnected": false, "globalState": "ACTIVE", "processingState": "NEW_STREAMS_ALLOWED", "id": "192.168.1.64" }, { "version": "2.4", "role": "EDGE", "inboundConnected": true, "outboundConnected": false, "globalState": "ACTIVE", "processingState": "NEW_STREAMS_ALLOWED", "connectionStats": { "lastRtt": 2, "lastSn": 24, "lastMessageSentMs": 1592359761801, "lastACKReceivedMs": 1592359761802, "maxRtt": 1224, "inFlightSize": 0 }, "id": "192.168.1.65" } ] |
Parameters
Parameter | Description | Example |
---|---|---|
inboundConnected | Inbound connection is established from this node | true |
outboundConnected | Outbound connection is established to this node | false |
lastRtt | Last packet RTT, ms | 2 |
lastSn | Last packet sequence number | 24 |
lastMessageSentMs | Last message sent timestamp, ms | 1592359761801 |
lastACKReceivedMs | Last acknowlegement received timestamp, ms | 1592359761802 |
maxRtt | Maximum RTT, ms | 1224 |
inFlightSize | Current sending packet size, bytes | 0 |
Note that statistics is not available for previous CDN versions nodes, connection status only can be checked.
...
REST queries and response states
REST query | Body example | Response states | Description | |||||||
---|---|---|---|---|---|---|---|---|---|---|
/cdn/connection/reset_inbound |
| 200 – OK 404 - Node not found | Reset inbound connection from this node | |||||||
/cdn/connection/reset_outbound |
| 200 – OK 404 - Node not found | Reset outbound connection to this node | |||||||
/cdn/connection/reset_all | 200 – OK | Reset all CDN connections on this node (since build 5.2.1222) |
Parameters
Parameter | Description | Example |
---|---|---|
nodeId | Node id (IP address) to reset connection with | 192.168.1.65 |
Signaling connections tuning
Inactive connections reset configuration
Signaling connection can be closed if server does not receive any packets during a certain timeout. The feature is enabled by the following parameters for incoming and outgoing signaling connections respectively
Code Block | ||
---|---|---|
| ||
cdn_inbound_ws_read_socket_timeout=true
cdn_outbound_ws_read_socket_timeout=true |
By default, the read timeout is set to 60 seconds
Code Block | ||
---|---|---|
| ||
cdn_inbound_ws_read_socket_timeout_sec=60
cdn_outbound_ws_read_socket_timeout_sec=60 |
Backward compatibility with CDN 2.0-2.3
...