Implementation of the server load balancer solution for streaming media (live stream Wowza)

Source: Internet
Author: User
Tags wowza wowza server
The implementation of live streaming load balancing requires two parts: 1. server load balancer listening server; 2. edge server configuration. I. server load balancer listener server configuration 1) first confirm that the wowza Server has been installed and download the server load balancer package wms-plugin-loadbalancer.jar from the official website; 2) copy the package to the server and copy it to the [install-dir]/lib/Folder. 3) copy the crossdomain in the conf folder. the implementation of xml live streaming load balancing requires two parts: 1. server load balancer listening server; 2. edge server configuration.
I. server load balancer listener configuration
1) first confirm that the wowza Server has been installed and the server load balancer package wms-plugin-loadbalancer.jar has been downloaded from the official website;
2) upload the package copy to the server and copy it to the [install-dir]/lib/folder;
3) copy the crossdomain. xml file in the conf folder to the [install-dir]/conf directory;
4) edit the Server. xml file in the [install-dir]/conf Directory. the modification content is as follows:
A) add the following content in ServerListeners:

Com. wowza. wms. plugin. loadbalancer. ServerListenerLoadBalancerListener


/* Enable the listening function for the above configuration items
B) add the following content in Properties:


LoadBalancerListenerKey
023D4FB4IS83


LoadBalancerListenerIpAddress
*


LoadBalancerListenerPort
1934
Integer


LoadBalancerListenerRedirectorClass
Com. wowza. wms. plugin. loadbalancer. LoadBalancerRedirectorConcurrentConnects


LoadBalancerListenerMessageTimeout
5000
Integer


5) modify the [install-dir]/conf/VHost. xml file
In the HTTPProviders configuration phase, modify and add the following content on com. wowza. wms. http. HTTPServerVersion:

Com. wowza. wms. plugin. loadbalancer. HTTPLoadBalancerRedirector
* Loadbalancer
None


EnableServerInfoXML
True
Boolean



The server load balancer is configured here.
2. configuration and deployment of edge servers
1) upload the wms-plugin-loadbalancer.jar package copy to the server and copy it to the [install-dir]/lib/folder;
2) edit the Server. xml file in the [install-dir]/conf Directory. the modification is as follows:
A) add the following content in ServerListeners:

Com. wowza. wms. plugin. loadbalancer. ServerListenerLoadBalancerListener


/* Enable the listening function for the above configuration items
B) set the attributes of the edge server.


LoadBalancerSenderTargetPath
$ {Com. wowza. wms. AppHome}/conf/loadbalancertargets.txt


LoadBalancerSenderRedirectAddress
10.0.116.9


LoadBalancerSenderMonitorClass
Com. wowza. wms. plugin. loadbalancer. LoadBalancerMonitorDefault


LoadBalancerSenderMessageInterval
2500
Integer


3) create the [install-dir]/conf/loadbalancertargets.txt file and add the following content:
10.0.20 9.172, 1934,023 D4FB4IS83
4) test
A) obtain the edge server load information
Http: // [load-balancer-ip-address]: 1935/loadbalancer? ServerInfoXMLB) obtains the server with the smallest load.
Http: // [load-balancer-ip-address]: 1935/loadbalancer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.