Versions Compared

Key

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

...

This value sets average CPU load (JVM SystemLoadAverage parameter) to CPU cores avalable ratio, including hyperthreading cores. When this value is exceeded, the Transcoder node is excluded from route elections for new stteams and profiles. In this case the Transcoder node is displayed in the stream route PROFILE section for profiles the stream is already transcoded by.

This parameter should be set on Transcoder nodes.

Node current state (if node participates in new stream route elections) can be checked with REST API. A node in NEW_STREAMS_ALLOWED state can pull new streams to transcode, a node in GROUP_CONNECTION_ALLOWED state can only push the streams already transcoded.

This parameter should be set on Transcoder nodes. Also this parameter can be set on Origin nodes, in this case their load can be checked via REST API, and if the Origin node become GROUP_CONNECTION_ALLOWED then new streams can be published to another Origin server.

Even Transcoder node load distribution

To distribute streams published to Transcoder nodes evenly, a next available node will be chosen to transcode new stream (Round Robiun algorithm). Stream name caching is used to prevent the same stream requested from couple of clients simultaneously to be spread over a numer of Transcoder nodes. Stream cache timeout is set in milliseconds with the following parameter

Code Block
themeRDark
cdn_transcoder_for_new_connects_expire_ms=10000

In this case cache timeout is 10 seconds.

This parameter should be set on Transcoder nodes.

Prevent Origin transcoding overload

The following setting is used to prevent Origin nodes from transcoding streams if no Transcoders available

Code Block
themeRDark
cdn_origin_allowed_to_transcode=false

In this case (by default), if no Trascoders available for new stream by certain profile, this stream will not be played with No available transcoders error.

Transcoding on Origin nodes can be enabled if necessary

Code Block
themeRDark
cdn_origin_allowed_to_transcode=true

This parameter should be set on Edge nodes.

Node state checking with REST API

...