Wowza Media Systems home
Wowza Pro is the best alternative to Adobe Flash Media Server. Try it today.
Now Hiring. Join the Wowza team!

Go Back   Wowza Media Server Forums > Wowza Media Server 2 Forums > Helpful Hints, Useful Code and Troubleshooting

Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2009, 11:07 AM
charlie charlie is offline
Administrator
 
Join Date: Nov 2006
Posts: 9,268
Default Dynamic Load Balancing solution

This package provides system for load balancing between multiple Wowza Servers. Each edge server is configured to use the ServerListenerLoadBalancerSender ServerListener class. We will call these servers the "edge" servers. Edge servers will periodically (about every 2.5 seconds) send load and status information over UDP to a single (or multiple) Wowza Server server running the ServerListenerLoadBalancerListener ServerListener. We will call this server the "load balancer". The load balancer will keep track of the load and availablility of each of the edge servers to which it is communicating. See the README.html file in the package for detailed instructions:

Version for Wowza Media Server 2.0.0 or greater
LoadBalancer_2.0.zip

Version for Wowza Media Server Pro 1.7.x
LoadBalancer.zip

Note: This package requires Wowza Server 1.6.0-patch19 or greater.

Enjoy,
Charlie

Last edited by charlie; 07-19-2010 at 01:06 PM.
Reply With Quote
  #2  
Old 02-02-2010, 02:40 AM
angelneda angelneda is offline
Junior Member
 
Join Date: Feb 2010
Posts: 3
Default Load Balancing and JW player Wowza load balancing plugin

Hi,

I’m deploying Wowza in a Load Balancing and Stream Repeater configuration with two Origin servers and two Edge servers. I followed the Load Balancing and Stream Repeater reference documents and it works fine.

As I’m going to use the JW player as client, I was looking for information on how to use Load Balancing with Wowza and I found at the Longtailvideo website a plugin for the JW player called: “Load Balancing for Wowza” (click here for more information about it)

I would like to have a little bit information about this plugin. The setup instructions are not clear to me, but it seems interesting because it manage a load balancing “servlist” that is going to be check by the plugin.

I would like to have a list with my two load balancers and if one of them is not available, to use the second one.

Do you think it possible with this plugin?

Is someone using it?

Thanks in advance,

Angel
Reply With Quote
  #3  
Old 02-02-2010, 02:45 AM
steveh steveh is offline
Member
 
Join Date: Nov 2009
Posts: 34
Default

You dont need to use that plugin any more a standard loadbalanced setup works just fine
Reply With Quote
  #4  
Old 02-02-2010, 04:36 AM
angelneda angelneda is offline
Junior Member
 
Join Date: Feb 2010
Posts: 3
Default

Thanks Steveh, but how can I tell to the player to use a secondary load balancer if the first one is not responding?
Reply With Quote
  #5  
Old 02-02-2010, 05:04 AM
rrlanham rrlanham is offline
Senior Member
 
Join Date: Dec 2007
Posts: 9,420
Default

You could use code in the player similar to the protocol rollover, and rollover to another load balancer server. You can adapt from this post:

http://www.wowzamedia.com/forums/showthread.php?t=576

If the connect fails you would try another load balancer.

Richard
Reply With Quote
  #6  
Old 02-02-2010, 06:49 AM
angelneda angelneda is offline
Junior Member
 
Join Date: Feb 2010
Posts: 3
Default

Thank you Richard for your answer.

I was reading the thread but I wouldn't like to change the JW source code. My question was only about if the Wowza Load Balancing plugin for JW player could help me to implement this behaviour.
Reply With Quote
  #7  
Old 04-06-2010, 01:14 AM
macpiciu macpiciu is offline
Junior Member
 
Join Date: Jan 2010
Posts: 1
Default

Hi, I think I got confused a little with the LB, Origin-Edge configuration. Just so I'm clear the liverepeater is for LIVE only. If I want to do LB for VOD I have to copy the content across servers?
Reply With Quote
  #8  
Old 06-24-2010, 03:31 AM
Massimux Massimux is offline
Junior Member
 
Join Date: Dec 2009
Posts: 16
Default

hello,

But in this way would necessarily work on the player setting the conditions for checking the URL to connect to.

Is there a way that allows you to balance the servers despite having to use JW player?

Moreover, this system is applicable for channels live type?
Reply With Quote
  #9  
Old 06-24-2010, 04:02 AM
charlie charlie is offline
Administrator
 
Join Date: Nov 2006
Posts: 9,268
Default

You can build your own startup package to do this. We have not built one as of yet. Probably will not get done in the short term.

Charlie
Reply With Quote
  #10  
Old 06-24-2010, 05:08 AM
ofm123 ofm123 is offline
Junior Member
 
Join Date: Jun 2010
Posts: 4
Default

Thanks for the quick reply.

Is the wms-plugin-loadbalancer.jar included in the current EC2 AMI's or will that need to be uploaded every time a new edge/loadbalancersender instance is created? Same for the crossddomain.xml file for the loadbalancerlistener?

When creating the startup pkg, do I simply add/edit the following files to liverepeater-edge.zip

/liverepeater-edge/wowza/conf/Server.xml (add)
/liverepeater-edge/wowza/conf/loadbalancertargets.txt (add)
/liverepeater-edge/wowza/conf/VHost.xml (add)
/liverepeater-edge/wowza/conf/Application.xml (edit)
/liverepeater-edge/wowza/conf/redirect/Application.xml (add)
/liverepeater-edge/wowza/applications/redirect (add)

and the following files to liverepeater-origin.zip

/liverepeater-origin/wowza/conf/VHost.xml (add)
/liverepeater-origin/wowza/conf/Server.xml (add)

... or is there more to it than that?

Thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:05 PM.


Copyright © 2006 - 2010, Wowza Media Systems
Wowza Media Systems