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 Pro Forums (version 1.7.x) > Wowza Pro for Amazon EC2

Reply
 
Thread Tools Display Modes
  #1  
Old 07-30-2009, 09:19 AM
newtargetweb newtargetweb is offline
Junior Member
 
Join Date: Jul 2009
Posts: 2
Default How many streams with small istance

Hi,

may I ask you a couple of informations about EC2 usage of Wowza?

In particular, if I'm live-streaming a m4v with a 900kbps encoding how many streams I'm able to play at the same time within the instance limits?
Reply With Quote
  #2  
Old 07-30-2009, 09:26 AM
rrlanham rrlanham is offline
Senior Member
 
Join Date: Dec 2007
Posts: 9,420
Default

Conservatively, on a small instance, I would say 150 concurrent for 900 kbs stream.

Quote:
Expect to get a total of about 150-200Mbps from a small instance and about 300-350Mbps from an xlarge instance (with a large instance) somewhere inbetween.

Charlie
small instance
150000/900 = 166

x-large
300000/900 = 332

Richard
Reply With Quote
  #3  
Old 07-30-2009, 09:29 AM
newtargetweb newtargetweb is offline
Junior Member
 
Join Date: Jul 2009
Posts: 2
Default

thanks for reply rrlanham
Reply With Quote
  #4  
Old 07-30-2009, 10:08 AM
rrlanham rrlanham is offline
Senior Member
 
Join Date: Dec 2007
Posts: 9,420
Default

Also, one other thing: 900 kb/s is very high for an internet audience. It will work for some users, but it is likely to be a bad experience for a significant number.

400 to 500 kb/s would be much better. For reference, the Wowza sample video "Extremists.m4v" is under 450 kb/s

Richard
Reply With Quote
  #5  
Old 08-11-2009, 05:28 AM
kebabber kebabber is offline
Member
 
Join Date: Jan 2009
Posts: 35
Default

xlarge instance gives you 300 - 350Mbps .

What if you need approximately 800 - 900Mbps for a big live event?

newbie adding 3 xlarge instances would help i guess

Last edited by kebabber; 08-11-2009 at 05:46 AM.
Reply With Quote
  #6  
Old 08-11-2009, 05:43 AM
rrlanham rrlanham is offline
Senior Member
 
Join Date: Dec 2007
Posts: 9,420
Default

You can use "origin/edge" configuration. This is where you run multiple edge servers with load balancing. The origin handles the live stream. Clients connect to one of the edge servers. The edge server gets the live stream from the origin.

See the "Multiple Server Live Streaming (Live Stream Repeater)" section of the User Guide.

This is the server-side load balance method:
http://www.wowzamedia.com/forums/showthread.php?t=4637

Richard

Last edited by rrlanham; 08-11-2009 at 05:53 AM.
Reply With Quote
  #7  
Old 08-11-2009, 09:19 AM
christr christr is offline
Senior Member
 
Join Date: Apr 2009
Posts: 203
Default

Richard, do you know if it's possible to cascade load balancers?

Here's my issue. My streaming servers have no problems dishing out 700 - 900mbps over out gig uplinks. But, I've only got those 2 and right now we only have 2gig in our datacenter anyway. (waiting for Level3 to add another but that's gonna be at least 60 days). What I'd like to do is use load balancing and Amazon, but Amazon instances can't be evenly balanced with what I've got.

So my idea was a load balancer that had my servers in the mix, with another load balancer. The 2nd one then sends calls off to Amazon. But I'm not sure if the players can deal with the multiple redirects. Have you or anyone else done this before?


My other option is to try to find another Wowza CDN that's got spare capacity and I can add them to my balancer temporarily for large events. Sent off a few emails to ones I know about tho and never heard back.

thanks,
--Chris
Reply With Quote
  #8  
Old 08-11-2009, 11:24 AM
rrlanham rrlanham is offline
Senior Member
 
Join Date: Dec 2007
Posts: 9,420
Default

Chris,

Why do you say they can't be evenly balanced? They should be evenly balanced in terms of number of connections.

You could make one of your servers be the load balance server, the other be an edge server, and you can add Wowza ec2 servers as edge servers.

You could make all the edge servers only ec2 servers so they would be identical.

Richard
Reply With Quote
  #9  
Old 08-11-2009, 11:32 AM
christr christr is offline
Senior Member
 
Join Date: Apr 2009
Posts: 203
Default

I thought all the servers had to be similar in connection capacity? Or is there a way to define how many connections each server could take? If I could give each server their own max connection count that would be perfect. I could say each of mine can take 5000 or whatever and then the amazon stuff can take 1500 or whatever they can handle.

The amazon stuff seems to be able to only run 100 -300mbps each, but my boxes can handle 2 - 3x that amount of traffic. Plus I'd much rather push from my DC then Amazon (much cheaper ).


thanks,
--Chris
Reply With Quote
  #10  
Old 08-11-2009, 01:02 PM
rrlanham rrlanham is offline
Senior Member
 
Join Date: Dec 2007
Posts: 9,420
Default

Chris,

You're right that the load balance system assumes all the edge's are equal, and redirects to the "least loaded server" by connection count, not capacity.

But the latest version of the Load Balance package has source and documentation. There are two interfaces that you can implement to extend the default load balance system:

ILoadBalancerMonitor
  • appendToMessage: use to append to the message sent to the LB server from the edge. You could set a connection limit in an Application property, and see if that is reached and append that data to the message.
ILoadBalancerRedirector
  • onMessage will be called each time an edge server sends a status message to the load balancer, so that is where you can catch the current load and appended message from the edge server.
  • getRedirect will be called each time a request comes in to find the least loaded server, you can use any algorithm method you like to pick the server to send this redirect to
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 Off
HTML code is Off

Forum Jump


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


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