...
REST query | REST query body example | REST response | Response states | Description | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
/cdn/show_nodes |
| 200 – OK 500 – Internal Server Error | Show CDN nodes state | ||||||||
/cdn/show_node_state |
| 200 – OK 500 – Internal Server Error | Show CDN node state to which the query was sent | ||||||||
/cdn/enforce_node_state |
| 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.
...