OvenMediaEngine supports Clustering and ensures High Availability (HA) and Scalability.
OvenMediaEngine supports the Origin-Edge structure for configuring Cluster and provides Scalability. Also, you can set Origin as
Secondary in OvenMediaEngine for HA.
Origin and Edge synchronize the
<Application>. Moreover, Origin can connect with hundreds of Edge.
When delivering media data from Origin to Edge, we used the SRT protocol to reduce latency and improve reliability. For more information on the SRT Protocol, please visit the SRT Alliance site.
The role of the Origin Application is to transcode the inputted Live source and transmit it to the Edge. Origin works as
live that sets in
<Application> just like Single Mode, and Edge connects to the port that sets in
<ListenPort> element in
You can operate Origin with the following settings:
<?xml version="1.0" encoding="UTF-8"?><Server version="1"><Name>OvenMediaEngine</Name><Hosts><Host><Name>default</Name><IP>*</IP><Ports><Origin>9000</Origin>...</Ports><Applications><Application><Name>app</Name><Type>live</Type><Encodes>...</Encodes><Streams>...</Streams><Providers>...</Providers><Publishers>...</Publishers></Application></Applications></Host></Hosts></Server>
The role of the Edge is to receive and distribute transcoded streams from Origin. You can configure hundreds of Edge to distribute traffic to your players. As a result of testing, a single Edge can stream 4-5Gbps traffic based on AWS C5.2XLarge. If you need to stream more traffic, you can configure and use multiple Edge. If you set the element to liveedge and Origin and to , they will synchronize with the application with the same name as the Origin server.
Server.xml<?xml version="1.0" encoding="UTF-8"?><Server version="1"><Name>OvenMediaEngine</Name><Hosts><Host><Name>default</Name><IP>*</IP><Ports>...</Ports><Applications><Application><Name>app</Name><Type>liveedge</Type><Origin><Primary>192.168.0.183:9000</Primary><Secondary>192.168.0.184:9000</Secondary></Origin><Publishers><ThreadCount>2</ThreadCount><HLS/><DASH/><WebRTC/></Publishers></Application></Applications></Host></Hosts></Server>
If you set
<Origin><Secondary> element, OvenMediaEngine automatically switches to
<Secondary> Origin when there is a problem with the
<Primary> Origin. You need to configure
<Secondary> Origin in
<Application> on the same stream to use this function.
When you are configuring Load Balancer, you need to use third-party solutions such as L4 Switch, LVS, or GSLB, but we recommend using DNS Round Robin. Also, services such as cloud-based AWS Route53, Azure DNS, or Google Cloud DNS can be a good alternative.