Versions Compared

Key

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

...

REST query

REST query body example

REST response

Response states

Description

/cdn/show_nodes



Code Block
languagejs
themeRDark
[
    {
        "globalState": "ACTIVE", 
        "id": "192.168.1.64", 
        "processingState": "NEW_STREAMS_ALLOWED", 
        "role": "TRANSCODER"
    }, 
    {
        "globalState": "ACTIVE", 
        "id": "192.168.1.39", 
        "processingState": "NEW_STREAMS_ALLOWED", 
        "role": "ORIGIN"
    }
]

200 – OK

500 – Internal Server Error

Show CDN nodes state

/cdn/show_node_state
Code Block
languagejs
themeRDark
NEW_STREAMS_ALLOWED

200 – OK

500 – Internal Server Error

Show CDN node state to which the query was sent
/cdn/enforce_node_state
Code Block
languagejs
themeRDark
{
"state": "GROUP_CONNECTIONS_ALLOWED"
}

200 – OK

500 – Internal Server Error

Forcefully set CDN node state

...

REST query /cdn/show_nodes may be sent to certain node, the node responds with all visible CDN nodes state excluding itself.

REST query /cdn/enforce_node_state allows forcefully change certain node state, for example, exclude the Transcoder node from route elections. To drop enforced state, an emty query body should be passed

...

Current CDN node state is defined as follows in priority order:
1. If there is a value enforced by /cdn/enforce_node_state REST query, state will be set to this value.
2. If CPU load threshold is reached, state will be set to GROUP_CONNECTIONS_ALLOWED.
3. If video encoders threshold is reached, state will be set to GROUP_CONNECTIONS_ALLOWED.
4. If no limits are reached, state will be set to NEW_STREAMS_ALLOWED.

...