# How to determine size of EC2 Wowza Instance?

**URL:** https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023
**Category:** Wowza Streaming Engine
**Created:** [December 2, 2009, 4:56pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023 "2009-12-02T16:56:28Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![BSG\_Inc](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@BSG\_Inc](https://community.wowza.com/u/BSG_Inc)
#### Post date: [December 2, 2009, 4:56pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/1 "2009-12-02T16:56:28Z")

</div>

Hey all.

Is there any way to determine exactly what size instance is needed? Any metrics or gauge?

I’m trying to stream HD video (H.264) for a site and would like it to sample down if the clients connection is to slow. I’m guessing for each video I have I’ll need both an HD version and a low-bandwidth version (Not sure what bandwidth settings I need to set them up with). I’m then assuming I’ll have JW Player figure out the bandwidth and open the correct file. Does this approach sound correct, or is there a better way to do this, perhaps even by using 1 file?

Any help in determining the size, as well as how to approach this is greatly appreciated.

Thanks.

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [December 2, 2009, 5:01pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/2 "2009-12-02T17:01:31Z")

</div>

As far as sizing goes we suggest the following total outgoing bitrates for each instance size:

small: 150Mbps

large: 250Mbps

xlarge: 350Mbps

You can certainly do a bitrate test on stream startup and use the appropriate stream based on avaliable bitrate. The BW Check tool is here:

[http://community.wowza.com/t/-/31](http://community.wowza.com/t/-/31)

We will support Flash dynamic streaming when Wowza 2.0 is shipping.

Charlie

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [December 3, 2009, 1:04am UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/3 "2009-12-03T01:04:15Z")

</div>

The main difference to consider for streaming is bandwidth. This seems to be approximately what you can expect.

small: 150mbs

large: 250mbs

x-large: 350mbs

You can use smil file for multi-bitrate delivery, which JW player supports in current version. Requires Wowza Server 2 Advanced:

[http://wowza.com/advanced.php](http://wowza.com/advanced.php)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [December 7, 2009, 12:41pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/4 "2009-12-07T12:41:20Z")

</div>

The AMI you are using is equivalent to Wowza 1.7.2 patch9 (build 12295)

If you want to use Wowza Server 2 on EC2, use one of these AMIs here:

[https://www.wowza.com/advanced.php](https://www.wowza.com/advanced.php)

The numbers posted is the estimated **total** throughput for these instance types. A single stream should be a small fraction of that. For example, 500kbs, in which case you could have 300 clients subscribing concurrently on a small instance.

You can encode to an optimal bitrate or you can encode 2 or more versions for a range of bitrates, then use bandwidth checking or a multi-bitrate to deliver appropriately. Optimal is about 400-600kbs. You can get a decent h.264 stream in a smaller frame below 200kbs. A higher quality stream might be 800 or 900 kbs. Beyond that there are diminishing returns in resolution and increased chance of buffering in the client. You have to be sure the client can handle the higher bitrate without buffering or it is not worth it.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [September 13, 2011, 10:45pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/5 "2011-09-13T22:45:05Z")

</div>

Steve,

No, obviously an m1-xlarge with 350mbs bandwidth can’t handle that. You can use a subscription license to run a Cluster GPU Quadruple Extra Large Instance, specs at the bottom of this page:

[http://aws.amazon.com/ec2/instance-types/](http://aws.amazon.com/ec2/instance-types/)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [September 13, 2011, 11:06pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/6 "2011-09-13T23:06:08Z")

</div>

Steve,

Bandwidth is the limiting factor for these instance types. The m1-small gets about 150mbs, so if you have a 500kbs live stream, for example, that instance can stream to about 300 clients. The xlarge will handle about 700.

The usual solution is a cluster of m1-small instances (best value per MBS) in a liverepeater (origin/edge) system.

[https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater](https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater)

You will also need a load balancer to distribute connections to your edges

[https://www.wowza.com/docs/how-to-get-dynamic-load-balancing-addon](https://www.wowza.com/docs/how-to-get-dynamic-load-balancing-addon)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [September 14, 2011, 7:57pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/7 "2011-09-14T19:57:02Z")

</div>

I said a xlarge could handle 700 500kbs streams, because it has 350mbs bandwidth. 350 / .5 = 700

Richard

---

<div class="post-metadata">

### Author: ![Ian\_Beyer](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@Ian\_Beyer](https://community.wowza.com/u/Ian_Beyer)
#### Post date: [September 13, 2011, 5:03pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/8 "2011-09-13T17:03:00Z")

</div>

The best bet to handle that many users is with an edge/origin repeater setup - the most cost-effective way to scale Wowza on EC2 is edge/origin on small instances (4x small can handle 2.5-3x the traffic of a large for the same money).

-Ian

---

<div class="post-metadata">

### Author: ![Ian\_Beyer](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@Ian\_Beyer](https://community.wowza.com/u/Ian_Beyer)
#### Post date: [September 14, 2011, 8:15pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/9 "2011-09-14T20:15:04Z")

</div>

Also bear in mind that by default, AWS limits you to 20 active instances. However, that limit can be increased simply by asking them to do so and detailing your use case.

The folks at RightScale have a good document laying out all the default limits imposed by Amazon: [http://support.rightscale.com/09-Clouds/AWS/01-AWS\_Basics/How\_do\_I\_increase\_my\_AWS\_limits\_%28EC2,\_EBS,\_EIP%29%3F](http://support.rightscale.com/09-Clouds/AWS/01-AWS_Basics/How_do_I_increase_my_AWS_limits_%28EC2,_EBS,_EIP%29%3F)

-Ian

---

<div class="post-metadata">

### Author: ![BSG\_Inc](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@BSG\_Inc](https://community.wowza.com/u/BSG_Inc)
#### Post date: [December 6, 2009, 5:37pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/10 "2009-12-06T17:37:36Z")

</div>

Thanks for the information. The current image out there for EC2, does it use Wowza Server 2 advanced? or some other version?

Thanks for all the help

---

<div class="post-metadata">

### Author: ![BSG\_Inc](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@BSG\_Inc](https://community.wowza.com/u/BSG_Inc)
#### Post date: [December 6, 2009, 5:40pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/11 "2009-12-06T17:40:26Z")

</div>

Oh the AMI I used was:

AMI ID: ami-022ac86b

Region: US

Architecture: 32-bit

Instance Size: m1.small

This was taken from [https://www.wowza.com/ec2support.html](https://www.wowza.com/ec2support.html)

---

<div class="post-metadata">

### Author: ![BSG\_Inc](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@BSG\_Inc](https://community.wowza.com/u/BSG_Inc)
#### Post date: [December 6, 2009, 10:11pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/12 "2009-12-06T22:11:48Z")

</div>

> As far as sizing goes we suggest the following total outgoing bitrates for each instance size:
> 
> small: 150Mbps
> 
> large: 250Mbps
> 
> xlarge: 350Mbps
> 
> Charlie the bitrates recommended above are what the videos should be encoded in correct? These are the highest they should go I am assuming. I have a pay per view/purchase video site. I would like to accomodate HD quality videos, but also give low bandwidth users a decent experience.
> 
> I would like to identify the highest I should go (HD video), and also what would be good enough for low bandwidth users. I plan on using the small instance for this currently.
> 
> Any help here is appreciated!
> 
> Thanks.

---

<div class="post-metadata">

### Author: ![Steve\_Parker](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Steve\_Parker](https://community.wowza.com/u/Steve_Parker)
#### Post date: [September 13, 2011, 2:30pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/13 "2011-09-13T14:30:22Z")

</div>

Did this ever get answered? We’re beta-testing Wowza 3 p4 running on Amazon AWS. If we’re pushing a 2Mbps HD stream in, and have over a thousand users who want to watch in HD (and a few thousand in other modes like Low/Mobile), in my mind that’s a whole lot more data than was mentioned in

> small: 150Mbps
> 
> large: 250Mbps
> 
> xlarge: 350Mbps

Can the XL handle this kind of bandwidth? Can Wowza handle this kind of bandwidth?

Thanks in advance!

Steve

---

<div class="post-metadata">

### Author: ![Steve\_Parker](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Steve\_Parker](https://community.wowza.com/u/Steve_Parker)
#### Post date: [September 13, 2011, 2:57pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/14 "2011-09-13T14:57:33Z")

</div>

> Steve,
> 
> No, obviously an m1-xlarge with 350mbs bandwidth can’t handle that. You can use a subscription license to run a Cluster GPU Quadruple Extra Large Instance, specs at the bottom of this page:
> 
> [http://aws.amazon.com/ec2/instance-types/](http://aws.amazon.com/ec2/instance-types/)
> 
> Richard

Richard,

Thanks for the speedy reply.

Is there a calculator or “estimator” somewhere that would allow me to enter the number of users of different kinds of bandwidth and tell me what size EC2 server I’d need for Wowza3 to support a broadcast with those numbers?

We build Social Media type websites for a living, and they host hundreds of thousands of users. We’ll be hosting broadcasts where 10,000 attendees aren’t out of the question, although most of them would be watching on Medium/Low bandwidth devices (mobile, iPad) but a “significant” number would likely watch in HD.

I need to build a cost estimation spreadsheet and have the bandwidth part all figured out, want to add in the cost of the servers (and make sure the servers can actually handle that kind of load). I’m fairly sure that the answer is going to be that we’ll have to create a load-balanced cluster, but I’d need to be able to estimate that as well.

Thanks!

Steve

---

<div class="post-metadata">

### Author: ![Steve\_Parker](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Steve\_Parker](https://community.wowza.com/u/Steve_Parker)
#### Post date: [September 14, 2011, 11:54am UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/15 "2011-09-14T11:54:19Z")

</div>

> Bandwidth is the limiting factor for these instance types. The m1-small gets about 150mbs, so if you have a 500kbs live stream, for example, that instance can stream to about 300 clients. The xlarge will handle about 700.
> 
> \<\<\<\<\>\>\>\>

Richard,

Thanks! I’m getting closer to understanding how to build a “calculator” to estimate our costs based on your reply. You mentioned that an m1-small gets about 150Mbps and an XL can handle about 700Mbps (even though the original post at the top of this thread said small: 150Mbps; large: 250Mbps; xlarge: 350Mbps.)

So… for the scenarios below, I’m guessing I can get by with an M1.small for scenario 1, m1.xlarge for scenario 2 and 3, then start building clusters to handle the rest.

Do you have similar “handle about nnn Mbps” values for the XXL, XXXXL? And based on what I’m reading in the links you sent, once I get to the Double or Quad XL, I’m better off clustering m1.small’s. Right?

```auto
[B][U]Scenario 1 : 100 users[/U][/B] watching a HD upstream video
  (split equally between four different quality streams)
  25 watching HD (720p @ 1.3Mbs) 32.5Mbps
  25 watching High Resolution (360p @ 850Kbps) 21.3Mbps
  25 watching Medium Resolution (240p @ 350Kbps) 8.8Mbps
  25 watching Low Resolution / Mobile (160p @ 200Kbps) 5.0Mbps
                                             --------------------
                                             Total: 67.5Mbps
[B][U]Scenario 2 : 500 users[/U][/B] 
  125 watching HD (720p @ 1.3Mbs) 162.5Mbps
  125 watching High Resolution (360p @ 850Kbps) 106.3Mbps
  125 watching Medium Resolution (240p @ 350Kbps) 43.8Mbps
  125 watching Low Resolution / Mobile (160p @ 200Kbps) 25.0Mbps
                                             --------------------
                                             Total: 337.5Mbps
[B][U]Scenario 3 : 1000 users[/U][/B] 675.0Mbps
[B][U]Scenario 4 : 5000 users[/U][/B] 3.4Gbps
[B][U]Scenario 5 : 10,000 users[/U][/B] 6.8Gbps
[B][U]Scenario 6 : 50,000 users [/U][/B] 33.8Gbps

```

And yes, we do forsee the possibility of exceeding scenario #6 numbers within a year, so I’ll have to plan for that as well.

TIA for your advice/help!!!

---

<div class="post-metadata">

### Author: ![Steve\_Parker](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Steve\_Parker](https://community.wowza.com/u/Steve_Parker)
#### Post date: [September 14, 2011, 12:16pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/16 "2011-09-14T12:16:28Z")

</div>

> I said a xlarge could handle 700 500kbs streams, because it has 350mbs bandwidth. 350 / .5 = 700

Whoops. My mistake… Sorry… 🙂 I saw my mistake just as your reply came in…

Steve

---

<div class="post-metadata">

### Author: ![Steve\_Parker](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Steve\_Parker](https://community.wowza.com/u/Steve_Parker)
#### Post date: [September 14, 2011, 6:57pm UTC](https://community.wowza.com/t/how-to-determine-size-of-ec2-wowza-instance/34023/17 "2011-09-14T18:57:41Z")

</div>

> Also bear in mind that by default, AWS limits you to 20 active instances. However, that limit can be increased simply by asking them to do so and detailing your use case.
> 
> The folks at RightScale have a good document laying out all the default limits imposed by Amazon: [http://support.rightscale.com/09-Clouds/AWS/01-AWS\_Basics/How\_do\_I\_increase\_my\_AWS\_limits\_%28EC2,\_EBS,\_EIP%29%3F](http://support.rightscale.com/09-Clouds/AWS/01-AWS_Basics/How_do_I_increase_my_AWS_limits_%28EC2,_EBS,_EIP%29%3F)

Thanks for the info! I appreciate it!
