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,242
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: 33
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 online now
Senior Member
 
Join Date: Dec 2007
Posts: 9,241
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 02-02-2010, 06:57 AM
rrlanham rrlanham is online now
Senior Member
 
Join Date: Dec 2007
Posts: 9,241
Default

I don't think it is. But, as Steve mentioned, you don't need that plugin, it's obsolete. You set up a load balancer and redirect application per the documentation in the package at top, which sends a redirect to JW Player, telling it what edge to connect to. And that's built-in to JW player, you just setup the server-side and connect to the redirect application with JW Player.

Richard
Reply With Quote
  #8  
Old 03-19-2010, 12:13 PM
rfkrocktk rfkrocktk is offline
Junior Member
 
Join Date: Mar 2010
Posts: 13
Default

If I were to integrate this into my project, would I have three types of instances? Ie: a loadbalancer server, origins, and edges?
Reply With Quote
  #9  
Old 03-19-2010, 12:20 PM
rrlanham rrlanham is online now
Senior Member
 
Join Date: Dec 2007
Posts: 9,241
Default

Yes, you could, but you could do all these things on a single machine, which is an appropriate way to test, and to start out. You can scale out from there.

Or you could do 3 machines to start:
  1. Origin
  2. Load Balancer Listener
  3. Edge/Load Balancer Sender

Notice that the Origin and Load Balancer Listener can be on different machines, but an edge server must also be a load balancer sender for this to work.

People often overlap terminology for Origin and Load Balancer Sender, and sometimes end up a little confused, so it is good to understand these parts distinctly.

Richard
Reply With Quote
  #10  
Old 03-19-2010, 12:26 PM
rrlanham rrlanham is online now
Senior Member
 
Join Date: Dec 2007
Posts: 9,241
Default

Also, I should add, it is very common and not a problem to use the same machine for Origin and Load Balancer Listener. It makes sense, and it is good use of hardware resources, but it is not necessary in the way that it is to have each Edge also be a Load Balancer Sender.

Richard
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 08:04 AM.


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