# Auto scaling and load balancing with AWS ELB

**URL:** <https://community.wowza.com/t/auto-scaling-and-load-balancing-with-aws-elb/51889>\
**Category:** Wowza Streaming Engine\
**Created:** [September 4, 2018, 3:11pm UTC](https://community.wowza.com/t/auto-scaling-and-load-balancing-with-aws-elb/51889 "2018-09-04T15:11:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NGUYEN\_THIEN1](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@NGUYEN\_THIEN1](https://community.wowza.com/u/NGUYEN_THIEN1)\
**Post date:** [September 4, 2018, 3:11pm UTC](https://community.wowza.com/t/auto-scaling-and-load-balancing-with-aws-elb/51889/1 "2018-09-04T15:11:40Z")

</div>

Hi everyone,

I used wowza engine to live and VOD. My app serve about 1 billion users. So that i need auto scaling,  
I cant use ELB and how do it.

Thanks all,

David

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [September 4, 2018, 4:40pm UTC](https://community.wowza.com/t/auto-scaling-and-load-balancing-with-aws-elb/51889/2 "2018-09-04T16:40:31Z")

</div>

_@NGUYEN THIEN Please follow these steps and reach out to us through a support ticket if you still need assistance with your app._

_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\__

You can autoscale Wowza Streaming Engine on cloud providers such as AWS. This can be triggered by a variable such as the CPU utilization %.

For more information on AWS autoscaling, you may want to reference the following [article](https://aws.amazon.com/autoscaling/) :

Wowza has an article that describes how to create a startup package that will be used to configure these scaled instances. This can be found on page 30 of the [Wowza EC2 User Guide](https://www.wowza.com/resources/WowzaStreamingEngineforEC2_UsersGuide.pdf) .

ELB can be used with Wowza Streaming Engine EC2 instances but it’s important to look into configuring the [stickiness settings](http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html) to maintain a consistent connection between a client and the selected server. Other load balancers could be used, such as the Wowza Load Balancer but with scaling groups, you may find that they work better with ELB.

With a single storage location for these VOD assets, you could look into using [Media Cache](https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache) to pull from this networked location, such as an S3 bucket. This should allow you to only maintain one location for your content.

Hopefully these suggestions will get you started on your autoscaling workflow.

---

<div class="post-metadata">

**Author:** ![NGUYEN\_THIEN1](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@NGUYEN\_THIEN1](https://community.wowza.com/u/NGUYEN_THIEN1)\
**Post date:** [September 5, 2018, 3:02am UTC](https://community.wowza.com/t/auto-scaling-and-load-balancing-with-aws-elb/51889/3 "2018-09-05T03:02:07Z")

</div>

Thank you for reply,

I had created TCP network load balancing and forward request to target port 1935 TCP, according i know TCP haven’t stickiness. How do i settings stickiness?

David.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [September 5, 2018, 10:44pm UTC](https://community.wowza.com/t/auto-scaling-and-load-balancing-with-aws-elb/51889/4 "2018-09-05T22:44:13Z")

</div>

Try these directions @NGUYEN THIEN:

[https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html](https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html)

---

<div class="post-metadata">

**Author:** ![Ducorps\_Matthieu](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@Ducorps\_Matthieu](https://community.wowza.com/u/Ducorps_Matthieu)\
**Post date:** [October 12, 2020, 9:48am UTC](https://community.wowza.com/t/auto-scaling-and-load-balancing-with-aws-elb/51889/5 "2020-10-12T09:48:08Z")

</div>

Hello  
Thank you for those detailed information, just would like to check if it is still possible to do load balancing with AWS ELB because I can’t find anything about it in the link you shared “[Wowza EC2 User Guide](https://www.wowza.com/docs/amazon)”.  
Also this is maybe another topic for a different thread but somewhat linked is it possible to use WOWZA with AWS ALB model ?  
Thanks for the clarifications  
With kind regards  
Matthieu

---

<div class="post-metadata">

**Author:** ![video\_streaming](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@video\_streaming](https://community.wowza.com/u/video_streaming)\
**Post date:** [October 12, 2020, 3:12pm UTC](https://community.wowza.com/t/auto-scaling-and-load-balancing-with-aws-elb/51889/6 "2020-10-12T15:12:46Z")

</div>

We don’t have any documentation on how to setup the AWS ELB/ALB with Wowza EC2 instances but we do offer a free Dynamic Load Balancer designed to work with Wowza Streaming Engine. This has some advantages over other load balancers as it does a 302 redirect on incoming stream requests to distribute playback loads. Doing so enables the player to maintain a persistent connection to the edge server instead of bouncing between them. See the following article for more info:  
[https://www.wowza.com/docs/how-to-get-dynamic-load-balancing-addon](https://www.wowza.com/docs/how-to-get-dynamic-load-balancing-addon)

If you do use the ELB Load Balancer, you’ll want to look into setting up sticky sessions. You can find more information here on these workflows:  
[https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html](https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html)

Yes, you can use ALB as well but we’d request a [support ticket](https://www.wowza.com/support/open-ticket) to better understand why you want to use that instead as it leads to a bit more complicated process, but it is possible to configure.

Please let us know if you have any further questions and we can assist you directly in a ticket. Thanks.
