# Creating a Load Balancer for EC2

**URL:** <https://community.wowza.com/t/creating-a-load-balancer-for-ec2/37520>\
**Category:** Wowza Streaming Engine\
**Created:** [November 2, 2011, 12:00pm UTC](https://community.wowza.com/t/creating-a-load-balancer-for-ec2/37520 "2011-11-02T12:00:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_Najar](https://avatars.discourse-cdn.com/v4/letter/i/71c47a/32.png) [@Ian\_Najar](https://community.wowza.com/u/Ian_Najar)\
**Post date:** [November 2, 2011, 12:00pm UTC](https://community.wowza.com/t/creating-a-load-balancer-for-ec2/37520/1 "2011-11-02T12:00:04Z")

</div>

Hi,

I want to create a Load Balancer using the AWS Management Console. When I launch a wizard I’m unsure what configuration I must use in Listener Configuration:

Load Balancer Protocol

Load Balancer Port

Instance Protocol

Instance Port

By Default, is HTTP and Port 80,so, should I add/change port 1934 of TCP for Flash? In which fields, Load Balancer or Instance fields?

And What about Health configuration? What values do you recommend me?

---

<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:** [November 2, 2011, 8:43pm UTC](https://community.wowza.com/t/creating-a-load-balancer-for-ec2/37520/2 "2011-11-02T20:43:52Z")

</div>

You can use the Load Balancer Addon and Wowza EC2 startup packages

The Load Balancer is here

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

Startup packages are covered in the EC2 guide

[https://www.wowza.com/resources/WowzaMediaServerForEC2\_UsersGuide.pdf](https://www.wowza.com/resources/WowzaMediaServerForEC2_UsersGuide.pdf)

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:** [November 2, 2011, 10:52pm UTC](https://community.wowza.com/t/creating-a-load-balancer-for-ec2/37520/3 "2011-11-02T22:52:18Z")

</div>

You might be able to use that. I don’t have any experience with it. Wowza load balancer uses connection counts, which makes the most sense when network throughput is the limiting factor, which it is in most cases with streaming, and definitely is true with EC2.

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:** [November 3, 2011, 11:08pm UTC](https://community.wowza.com/t/creating-a-load-balancer-for-ec2/37520/4 "2011-11-03T23:08:42Z")

</div>

Yes, a properly configured Load Balancer Sender/Edge server will announce itself to the LB Listener.

Richard

---

<div class="post-metadata">

**Author:** ![Ian\_Najar](https://avatars.discourse-cdn.com/v4/letter/i/71c47a/32.png) [@Ian\_Najar](https://community.wowza.com/u/Ian_Najar)\
**Post date:** [November 2, 2011, 3:18pm UTC](https://community.wowza.com/t/creating-a-load-balancer-for-ec2/37520/5 "2011-11-02T15:18:37Z")

</div>

This means that I can’t use Amazon’s Load Balancer? 😕

---

<div class="post-metadata">

**Author:** ![Ian\_Najar](https://avatars.discourse-cdn.com/v4/letter/i/71c47a/32.png) [@Ian\_Najar](https://community.wowza.com/u/Ian_Najar)\
**Post date:** [November 2, 2011, 5:16pm UTC](https://community.wowza.com/t/creating-a-load-balancer-for-ec2/37520/6 "2011-11-02T17:16:51Z")

</div>

If I use Wowza’s Dynamic Load Balancer in an instance and a “origin” server, and then use autoscaling to launch automatically a new instance, Will origin server get noticed about the new instance?

---

<div class="post-metadata">

**Author:** ![Ian\_Najar](https://avatars.discourse-cdn.com/v4/letter/i/71c47a/32.png) [@Ian\_Najar](https://community.wowza.com/u/Ian_Najar)\
**Post date:** [November 2, 2011, 5:40pm UTC](https://community.wowza.com/t/creating-a-load-balancer-for-ec2/37520/7 "2011-11-02T17:40:30Z")

</div>

If I use Wowza’s Dynamic Load Balancer in an instance and a “origin” server, and then use autoscaling to launch automatically a new instance, Will origin server get noticed about the new instance?

---

<div class="post-metadata">

**Author:** ![Ian\_Najar](https://avatars.discourse-cdn.com/v4/letter/i/71c47a/32.png) [@Ian\_Najar](https://community.wowza.com/u/Ian_Najar)\
**Post date:** [November 4, 2011, 12:55pm UTC](https://community.wowza.com/t/creating-a-load-balancer-for-ec2/37520/8 "2011-11-04T12:55:17Z")

</div>

We already setup an Load Balancer “listener” server instance and an “edge” server instance.

When we access to the http://[loadbalancer-ip]:1935/loadbalancer, we get a edge IP:

```auto
redirect=[edge-server]

```

But when we look at the “wowzamediaserver\_error.log” located in the origin server, we got this:

```auto
  ModuleLoadBalancerRedirector.onAppStart[Myapp/_definst_]: LoadBalancerListener not found. All connections to this application will be refused.

```

Why am I getting this error log even when I access to “http://[loadbalancer-ip]:1935/loadbalancer” appears the edge server properly?

Note: We are using a converted EBS-backed instances of Wowza Media Server 2 for EC2.
