# Can't add instances in Load Balancer on amazon EC2

**URL:** <https://community.wowza.com/t/cant-add-instances-in-load-balancer-on-amazon-ec2/441>\
**Category:** Wowza Streaming Engine\
**Created:** [December 27, 2010, 7:06pm UTC](https://community.wowza.com/t/cant-add-instances-in-load-balancer-on-amazon-ec2/441 "2010-12-27T19:06:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [December 27, 2010, 7:06pm UTC](https://community.wowza.com/t/cant-add-instances-in-load-balancer-on-amazon-ec2/441/1 "2010-12-27T19:06:53Z")

</div>

When I create a load balancer on Amazon EC2 for some reason I can’t add instances to the load balancer. When I click save nothing happens.

My process:

1.I’m start two wowza instances first.

2.Then I’m create load balancer

1. Lastly I try to add my two instances to the load balancer.

Is there another method for doing this?

Could my issue be related to this post in the FAQ? ? If so please explain.

Q: Can I load balance Amazon EC2 instances launched using a Paid AMI?

Not at this time. Manually registering a Paid AMI based Amazon EC2 instance with the Elastic Load Balancer or using a Paid AMI with an Auto Scaling Group that is associated with the Elastic Load Balancer is not supported. Elastic Load Balancing with Paid AMI support will be available soon.

[http://aws.amazon.com/ec2/faqs/#Can\_I\_load\_balance\_Amazon\_EC2\_instances\_launched\_using\_a\_Paid\_AMI](http://aws.amazon.com/ec2/faqs/#Can_I_load_balance_Amazon_EC2_instances_launched_using_a_Paid_AMI)

Thanks

Derrick F.

---

<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 28, 2010, 12:38am UTC](https://community.wowza.com/t/cant-add-instances-in-load-balancer-on-amazon-ec2/441/2 "2010-12-28T00:38:14Z")

</div>

Wowza EC2 instance are PAID AMIs, so it won’t work at present.

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 28, 2010, 2:28am UTC](https://community.wowza.com/t/cant-add-instances-in-load-balancer-on-amazon-ec2/441/3 "2010-12-28T02:28:34Z")

</div>

You can use that, it’s 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)

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 28, 2010, 1:23pm UTC](https://community.wowza.com/t/cant-add-instances-in-load-balancer-on-amazon-ec2/441/4 "2010-12-28T13:23:00Z")

</div>

Derrick,

Use startup packages. This way you can start 30 edge servers at one time. See the EC2 User Guide for details on using startup packages. There are prepared startup packages here:

[http://wowzamediasystems.s3.amazonaws.com/packagelist.html](http://wowzamediasystems.s3.amazonaws.com/packagelist.html)

Including Liverepeater origin and edge

[http://wowzamediasystems.s3.amazonaws.com/com/wowza/startup/2.0/liverepeater-edge.zip](http://wowzamediasystems.s3.amazonaws.com/com/wowza/startup/2.0/liverepeater-edge.zip)

[http://wowzamediasystems.s3.amazonaws.com/com/wowza/startup/2.0/liverepeater-edge.zip](http://wowzamediasystems.s3.amazonaws.com/com/wowza/startup/2.0/liverepeater-edge.zip)

The default startup packages is what Wowza EC2 instances use if you do not specify one of your own.

Short guide: download the startup package, open ElasticFox, open Launch Instance dialog to start a Wowza Instance, click the button labeled “Open Binary File” and select the startup package zip file, then launch the instance and it will be configured by the startup package.

Monitor the cluster to see if you need add edge servers:

http://[load-balancer-ip-address]:1935/loadbalancer?serverInfoXML

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:** [December 28, 2010, 11:07am UTC](https://community.wowza.com/t/cant-add-instances-in-load-balancer-on-amazon-ec2/441/5 "2010-12-28T11:07:14Z")

</div>

In addition to using startup packages, I’ve got a bash script that will allow you to not only launch with a given startup package, but to then do additional processing on the instance (such as downloading content, applying modules and so on).

[http://blog.ianbeyer.com/code/ec2-startup](http://blog.ianbeyer.com/code/ec2-startup)

Startup packages in combination with this script (and a few others) have made automating quite simple.

-Ian

---

<div class="post-metadata">

**Author:** ![Derrick\_Freeman](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Derrick\_Freeman](https://community.wowza.com/u/Derrick_Freeman)\
**Post date:** [December 27, 2010, 9:26pm UTC](https://community.wowza.com/t/cant-add-instances-in-load-balancer-on-amazon-ec2/441/6 "2010-12-27T21:26:17Z")

</div>

Thanks. So do I have to use the AddOn for Dynamic Load Balancing to get Load Balancing to work with EC2?

Derrick F.

---

<div class="post-metadata">

**Author:** ![Derrick\_Freeman](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Derrick\_Freeman](https://community.wowza.com/u/Derrick_Freeman)\
**Post date:** [December 27, 2010, 9:50pm UTC](https://community.wowza.com/t/cant-add-instances-in-load-balancer-on-amazon-ec2/441/7 "2010-12-27T21:50:20Z")

</div>

Thanks Richard! I got it going with that.

Derrick F.

---

<div class="post-metadata">

**Author:** ![Derrick\_Freeman](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Derrick\_Freeman](https://community.wowza.com/u/Derrick_Freeman)\
**Post date:** [December 27, 2010, 10:50pm UTC](https://community.wowza.com/t/cant-add-instances-in-load-balancer-on-amazon-ec2/441/8 "2010-12-27T22:50:03Z")

</div>

Richard,

I’m curious. What’s best approach for load balancing for large scale deployments of 30 or more instances with load balancing? It seems like that would take a while to set up using the AddOn approach.

Derrick F.

---

<div class="post-metadata">

**Author:** ![Derrick\_Freeman](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Derrick\_Freeman](https://community.wowza.com/u/Derrick_Freeman)\
**Post date:** [December 28, 2010, 12:42pm UTC](https://community.wowza.com/t/cant-add-instances-in-load-balancer-on-amazon-ec2/441/9 "2010-12-28T12:42:51Z")

</div>

Thanks Richard and Ian! I’ll check into these items.
