Setting up automatic input failover with MediaConnect inputs
To use MediaConnect inputs with automatic input failover, you must set up both the inputs and the MediaLive channels in a specific way.
Note
The information in this section assumes that you are familiar with the general steps for creating a MediaConnect input and creating a channel.
To plan the inputs for the input failover pair
-
Identify the flows that you need to create on MediaConnect:
-
If you are setting up automatic input failover in a single-input channel, you need two flows—one for each input.
-
If you are setting up automatic input failover in a standard channel, you need four flows—two for each input.
-
-
Make sure that all the flows contain exactly identical video, audio, captions, and metadata.
To create the flows in MediaConnect in a standard channel
You must create four flows, two for the primary input, and two for the secondary input.
-
Follow the procedure in Create a MediaConnect input, with the following notes:
Make sure that you set up the flows in the correct Availability Zones. Assume that the two flows for the primary input are A and B, and that the two flows for the secondary input are C and D.
-
Flow A must be in Availability Zone X.
-
Flow B must be in Availability Zone Y.
-
Flow C must be in Availability Zone X.
-
Flow D must be in Availability Zone Y.
At channel startup, MediaLive sets up the flows as follows:
-
Flow A connects to pipeline 0.
-
Flow C connects to pipeline 0.
-
Flow B connects to pipeline 1.
-
Flow D connects to pipeline 1.
As a result of these connections, the active input on pipeline 0 is initially from Availability Zone X. The active input on pipeline 1 is initially from Availability Zone Y. If one Availability Zone fails, only one pipeline is affected. For more information on failure scenarios, see Failover and failback scenarios.
-
To create the flows in MediaConnect in a single-pipeline channel
You must create two flows, one for each input.
-
Follow the procedure in Create a MediaConnect input, with the following note:
Make sure that you set up the flows in the same Availability Zones. The two inputs provide two paths to the single pipeline in the channel. If one of the flows fails to send content, that input fails and MediaLive switches to the other input.
To create the inputs for the input failover pair
-
Follow the procedure in Create a MediaConnect input to create one input of the appropriate type.
-
In a standard channel, set up the input with two sources. Attach flows A and B to this input.
-
In a single-pipeline channel, set up the input with one flow.
-
Give the input a name such as
primary input
.
-
-
Create a second input in the same way.
-
In a standard channel, set up the input with two sources. Attach flows C and D to this input.
-
In a single-pipeline channel, set up the input with one flow.
-
Give the input a name such as
secondary input
.
-
To attach the inputs to the channel
-
In the Input attachments section of the Create channel page, follow the usual procedure to attach the primary input. Ignore the Automatic input failover settings for now.
-
Follow the same procedure to attach the secondary input.
-
In the Input attachments section, in the list of input attachments, choose the first input that you attached.
-
In the Automatic input failover settings section, choose Enable automatic input failover settings. As soon as you enable this field, this input is labeled as Primary in the list of input attachments.
-
For Secondary input, choose the secondary input. (When you do this, this input is labeled as Secondary in the list of attachments.)
-
For Input preference, choose the desired option. This field controls the behavior when MediaLive has switched over to the secondary input and then the primary input becomes healthy again.
-
EQUAL_INPUT_PREFERENCE – MediaLive remains on the secondary input. The primary input continues to be processed, but it is not active.
-
PRIMARY_INPUT_PREFERENCE – MediaLive switches back to the primary input. The primary input becomes the active input.
-
-
For Failover conditions, enable the conditions that you want MediaLive to use to identify input loss. The fields include help that describes how the conditions work.
Note
If you enable the input loss failover condition, find out if the MediaConnect flow implements source redundancy with failover mode. With this mode, if there is a source failure, MediaConnect waits 500 ms for the source to recover before it fails over. Therefore, you must configure MediaLive to wait longer than 500ms, to ensure that MediaLive doesn't fail over just as MediaConnect is about to recover.
In the Enable input loss settings option, adjust the threshold. Set the threshold to a value higher than 500ms. You might need to try different values to find the ideal threshold for your network.